Web API options for Cortex

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • chris_j_hunter
    Automated Home Legend
    • Dec 2007
    • 1713

    #31
    time format - that one's a mystery ... did wonder if it follows the format in Windows, but couldn't find how to set that either !

    direct connection ... not sure I understand (our tablets display the chosen NoticeBoard), but we'd do it via some GeneralLogic gates ... in other words, Room > GeneralLogic gate > AllDisplay item (with text that identifies the Room or whatever + <Time> Message Tag) > NoticeBoard > WebServer > tablets ...
    Our self-build - going further with HA...

    Comment

    • Karam
      Automated Home Legend
      • Mar 2005
      • 863

      #32
      Originally posted by Aristoteles View Post
      I'm sorry Chris, but I lost you.
      I´m using the AllDisplay a lot. It is perfect for the panels.
      I manage to get the messages appear one by one on the NoticeBoard, but they disappear after a short while. They don´t seem to be like a feed where I can scroll back in history.
      You can control the persistence time of a message on the noticeboard using the tag <Duration=hh:mm:ss>. However the bit about scrolling back I'm not sure I understand. Do you mean you want a new message entry each time the object changes value? I.e so you have something like the history list in Cortex for that object? If so then that is not the way the notice board works. A given object will update its particular message rather then append a new one. If you look at the example screen shot of the notice board connected App in my earlier post, you will see a number of different data items being displayed with times adjacent to them. So as an object changes state or some other reason to update its status (could be scheduler driven or on a button press or any other signal) then it is just the object's data that gets updated rather then an entire new entry. So you can see at a glance for example when the door was last opened or closed or you can see how long something has been going on for if you use a time accumulator, that sort of thing. So the idea is that it is a notice board not a history list display - i.e not something you'd normally want to interact with to scroll.

      An app could however be created which simply appends new messages to a list (possibly a simple modification to existing one), but I imagine this would only be used for a single object otherwise the list would be cluttered up with all sorts of data items.

      Comment

      • chris_j_hunter
        Automated Home Legend
        • Dec 2007
        • 1713

        #33
        Why not use NoticeBoard for current status of rooms, and MessageService for History, both scrollable and both fed by some simple GeneralLogic & AllDisplay ...
        Our self-build - going further with HA...

        Comment

        • Karam
          Automated Home Legend
          • Mar 2005
          • 863

          #34
          Just a quick note to inform you that the public release notice board plus app (on our Downloads page) has been updated to fix the memory leak issue. As its a direct apk file you will need to manually download and install but this will not clear any existing settings. The only difference you should notice is that the progress circle has turned into a progress bar and that the indication of 'no/bad response from server' is now a flashing red/black background to the progress bar instead of the whole date bar flashing. Also, after such a break the app will back off for at least 30 seconds then 60s before retrying notwithstanding your refresh period settings.

          Comment

          • Alexc
            Automated Home Sr Member
            • Apr 2013
            • 82

            #35
            The app installed easily - thanks for the update.

            Comment

            • Aristoteles
              Automated Home Jr Member
              • Jan 2013
              • 32

              #36
              Thanks Karam and Chris, I think I get it to work now and I understand the intended functionality for the notice board.
              I also found out that I can get a direct connection from the object to the notice board by enablind display prompts. I can even add a dynamic value in the field (ie. <time>) which make things easier.
              However the time format seems to be in 12H even though I have unchecked the am/pm on the notice board screen options. (The time shows in 24h format in the date and time area). Strange.
              Furthermore the notification area does not seem to scroll and there is no vertical scrollbar as it is on the message area. Would be good if it automaticly scrolled down so it showed the last notifications.

              Comment

              • Karam
                Automated Home Legend
                • Mar 2005
                • 863

                #37
                Interesting, I never really thought to try and use the notification area for multiple line messages. In fact only realised that you could achieve this using the concatenation option. However I still think its intended operation mode is displacement. I.e latest notfication displaces the one before it so only ever one item. In fact it does still work this way depending on the new notification even if you enable concatenation, so it may not always work as you think. I'm guessing you might be still trying to achieve a form of cumulative list function but still not sure that the noticeboard is suited to this.

                Comment

                • chris_j_hunter
                  Automated Home Legend
                  • Dec 2007
                  • 1713

                  #38
                  our Notifications are displayed for about a minute - amongst other things, they include written copies of everything that's spoken, so when we don't hear fully what was said we can look at a tablet & still know ... we sometimes have many lines of Notifications showing at once, and we find this very useful ...

                  that's in addition to Messages, of course, which we have showing for an hour, and use for things like weather forecast & energy summaries ...
                  Our self-build - going further with HA...

                  Comment

                  • Karam
                    Automated Home Legend
                    • Mar 2005
                    • 863

                    #39
                    I suppose the Notice board app (tablet display) might help a bit in the sense that the notifications are displayed on the same screen and potentially you could scroll with your finger. However I'm not sure what the limits might be, e.g trying to retain a whole days worth of persisting notifications

                    Comment

                    • chris_j_hunter
                      Automated Home Legend
                      • Dec 2007
                      • 1713

                      #40
                      for longer times - several hours, days - then Message Services could do the job of showing (eg) Room Occupation history - just have to generate the messages via some logic ...

                      if need to see current Room status more or less continuously, could generate an appropriate Message (for showing on NoticeBoard) giving the information every (say) ten minutes, and connect a button to give instant update or, better still, generate the Message whenever room status changes ... we've had some success with formatting Messages to make them easy to read on the displays ...

                      ie: NoticeBoard summary Message giving current status, and Message Service for longer-term history ...

                      hmm, when get a moment (we're moving house at the moment), will have a go at doing this ourselves - could be useful, when we have the family staying !
                      Last edited by chris_j_hunter; 13 June 2016, 08:34 AM.
                      Our self-build - going further with HA...

                      Comment

                      • Karam
                        Automated Home Legend
                        • Mar 2005
                        • 863

                        #41
                        In fact I do use the notification line for information about room occupancy but via the All Display object. I.e I'll have an entry in the All Display object such as 'Kitchen' with display text as 'Kitchen <Time>' and then in its connections I have the status updated by the kitchen occupied state output signal and the text line output to go into the Notification input of the relevant noticeboard object, and so on for other rooms. The same line could also notify me of doors being opened. The update rate is the refresh period. In fact the development notice board app goes one better - in that it has a multi-site capability and page rotation feature, so makes it handy for one tablet to bring up pages for different noticeboards which could be a mix of boards from your own site and others.

                        Comment

                        • M.Harrison
                          Automated Home Jr Member
                          • May 2016
                          • 33

                          #42
                          Hi - just tried to download the notice board app and it's not an apk file but a zip one. Extracted the contents of this and still no apk... Am I doing it wrong or is there something not right with ii ???

                          Comment

                          • chris_j_hunter
                            Automated Home Legend
                            • Dec 2007
                            • 1713

                            #43
                            .apk when we tried, just now - suspect you've maybe clicked a link further up the page ...
                            Our self-build - going further with HA...

                            Comment

                            • Karam
                              Automated Home Legend
                              • Mar 2005
                              • 863

                              #44
                              Originally posted by M.Harrison View Post
                              Hi - just tried to download the notice board app and it's not an apk file but a zip one. Extracted the contents of this and still no apk... Am I doing it wrong or is there something not right with ii ???
                              Apologies, it does download as a file with extension of .apk but due to some Wordpress setting it appears as a Zip format file to the client. This should now be corrected. So on an Android tablet the process is typically: Using a browser. click on the download link in our web page. This then downloads to the Download folder on the tablet. Then use whatever file manager app exists on the tablet to navigate to the Download folder (typically sdcard/Download) and then click on the IDRNBpls.apk file to install. Another option id to download elsewhere and e-mail as an attachment to the tablet and usually you can install from the attachment after agreeing to a security warning.

                              Comment

                              • M.Harrison
                                Automated Home Jr Member
                                • May 2016
                                • 33

                                #45
                                Hi - Thanks for that - was beginning to make me wonder what was going on with getting it as a .zip when the file showed as a .apk ... - found that if I renamed the .zip to .apk it installed & worked OK. Not got it to work yet but haven't got the time at the mo to go and recheck that I did all the cortex config right... Will have another look later tonight hopefully..

                                Comment

                                Working...
                                X