Weather widget

Discussion in 'C-Bus Automation Controllers' started by Nobes, Jun 25, 2018.

  1. Nobes

    Nobes

    Joined:
    Oct 7, 2004
    Messages:
    149
    Likes Received:
    0
    Location:
    Hobart
    Has anyone experimented with things like weather widgets, or something as simple as displaying time and date. Soo many things that were easy on the old CTC's that just aren't straight forward anymore.

    Had a search through the documentation but haven't seen anything obvious yet.
     
    Nobes, Jun 25, 2018
    #1
    1. Advertisements

  2. Nobes

    MadMal

    Joined:
    Dec 16, 2009
    Messages:
    53
    Likes Received:
    0
    Location:
    Perth, WA
    Thought I would just put this here in case any one else was reading this ...

    I used the following to get time to display ..

    Object, Create User Parameter in App 250, Address 0, Called "Time"

    Scripting, Create new Resident Script with interval 60 seconds.

    Script has the code:
    hour = os.date('%I')
    min = os.date('%M')
    ampm = os.date('%p')
    SetUserParam(0, 0, hour..':'..min..' '..ampm)
    Add new object to a visualisation connected to 0/250/0

    Feel free to tell me there is a better way :)
     
    MadMal, Aug 9, 2018
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.