Announcement

Collapse
No announcement yet.

[Action Plugin] NTPC Action Plugin (NTP Timeserver Client)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Action Plugin] NTPC Action Plugin (NTP Timeserver Client)

    Hi all!

    Here's a quick release for a small plugin I made because I noticed a thread about timesync.

    Originally posted by imagine-programming.com
    Imagine NTPC Action Plugin is a very simple and tiny plugin that allows an AMS Lua developer to obtain accurate and up-to-date time information from within AMS periodically.

    This plugin allows easy access to timeservers running on port 37, most NTP servers have this service up and running. The reason why it supports timeserver and not the NTP port 123 service, is so that the application can also retrieve the time from MS Windows 2003 and lower servers.
    Functions
    Code:
    NTPC.GetTimezoneName
    NTPC.GetTimezoneBias
    NTPC.RetrieveNTPTime
    More info and downloads
    http://www.imagine-programming.com/p...on-plugin.html
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

  • #2
    Update v1.1.0.0
    A very simple update that also takes daylight savings into account in the biased result. The unbiased table contains UTC and the biased table contains the localized time with time zone offset correction + daylight savings correction.

    Downloads: http://www.imagine-programming.com/p...html#downloads
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment


    • #3
      Update v1.2.0.0
      Another update, in this one I added support for both the Time protocol (port 37) and the NTP protocol (port 123).
      Both methods have a function that can be called exactly the same way, and they both produce the same result format.

      Downloads: http://www.imagine-programming.com/p...html#downloads
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment


      • #4
        Originally posted by Imagine Programming View Post
        Update v1.2.0.0
        Another update, in this one I added support for both the Time protocol (port 37) and the NTP protocol (port 123).
        Both methods have a function that can be called exactly the same way, and they both produce the same result format.

        Downloads: http://www.imagine-programming.com/p...html#downloads
        This last download for some reason avast complains core and update one both download fine only update two is a problem, do you have upx compression ?
        Plugins or Sources MokoX
        BunnyHop 2021 Here

        Comment


        • #5
          not to jump in over IP, however if it helps,

          the lmd file is Not upx'd, the manifest is not Vista and later compatible (regarding 'asinvoker' etc. ) fwiw.
          (avast issues when downloaded or when run, or using a particular protocol (avast fussy with port stuff) ??)

          Comment


          • #6
            Indeed, no UPX or anything special. Avast is just crying about the network connections being made to time servers! I'll run a few scans and check if I can get a false-positive sent in to them.

            *edit* - Files have been sent in to Avast, hopefully they'll unmark it soon
            Bas Groothedde
            Imagine Programming :: Blog

            AMS8 Plugins
            IMXLH Compiler

            Comment


            • #7
              Originally posted by Imagine Programming View Post
              Indeed, no UPX or anything special. Avast is just crying about the network connections being made to time servers! I'll run a few scans and check if I can get a false-positive sent in to them.

              *edit* - Files have been sent in to Avast, hopefully they'll unmark it soon
              I just thought I would let you know, I can't even download it without disabling Avast as it might be a good AV but it never listens to my safe list ever so now its just blocking the connection when I click download on that one lol

              I know IP's stuff is safe and trust it
              Plugins or Sources MokoX
              BunnyHop 2021 Here

              Comment


              • #8
                Awesome,

                Thank you Imagine. I appreciate your effort! This should come in handy across the board!
                "White-colla-AMS-gangsta."

                Comment


                • #9
                  Thanks King!

                  You're welcome Protocol!
                  Bas Groothedde
                  Imagine Programming :: Blog

                  AMS8 Plugins
                  IMXLH Compiler

                  Comment


                  • #10
                    Works like a charm, brother. Great stuff! If you're looking for a simple NTP/NTS solution, this is it.
                    "White-colla-AMS-gangsta."

                    Comment


                    • #11
                      Originally posted by Protocol View Post
                      Works like a charm, brother. Great stuff! If you're looking for a simple NTP/NTS solution, this is it.
                      Good to hear! ^^ The next (and for now final) feature I will implement is a synchronized clock from within the plugin. You can set it to synchronize e.g. every 15 minutes and simply fetch the time that is known at the moment.
                      Bas Groothedde
                      Imagine Programming :: Blog

                      AMS8 Plugins
                      IMXLH Compiler

                      Comment

                      Working...
                      X