Results 1 to 14 of 14

Thread: Raspberry Pi integration

  1. #1
    New User
    Join Date
    Aug 2017
    Location
    UK
    Posts
    2

    Raspberry Pi integration

    Hi all,

    I have been pondering how to enhance the storm mode of my Apex which is running my Vortechs and Radions. I would like to have random storms and associated sound effects to play at the same time.

    It struck me that I could use a Raspberry Pi to run a storm triggering program that could interact with the break out box and tell the Apex when to invoke storm mode for the lights and pumps while also playing sound effects through attached speakers.

    I was wondering if anyone else has tried to do this sort of thing and what happened when they did.

    Thanks!

  2. #2
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    You cannot directly connect the outputs of a RPi (or Arduino) to the Apex switch inputs via BoB. You’d have to control small relays with the other processor and use those relays to switch the BoB inputs open and closed.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  3. #3
    New User
    Join Date
    Aug 2017
    Location
    UK
    Posts
    2
    Thanks Russ, I was planning to use a PiFace board which has relays already attached. It also has buttons already installed which I could use for manual override

  4. #4
    Frequent Visitor
    Join Date
    Dec 2014
    Location
    Mojave Desert
    Posts
    109
    Sounds neat!


    Sent from my iPhone using Tapatalk

  5. #5
    Frequent Visitor MatroxD's Avatar
    Join Date
    Jan 2013
    Location
    Wyandotte, MI
    Posts
    420
    Following.. As I have an extra pi that I am not using. I had thought about attempting to integrate into the system somehow, but hadn't really gotten it together.. But very interesting indeed.. I look forward to your progress..

    Sent from my SM-N920V using Tapatalk

  6. #6
    New User
    Join Date
    Aug 2017
    Location
    Hong Kong
    Posts
    1
    following

    I have a pi that is controlling other monitors and would like to see how I can feed the data to apex. anyone might be able to help? The log would include a value like "7.59" and probably a time stamp.

  7. #7
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    Quote Originally Posted by JEKK View Post

    I have a pi that is controlling other monitors and would like to see how I can feed the data to apex. anyone might be able to help? The log would include a value like "7.59" and probably a time stamp.
    There is no API for doing that.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  8. #8
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by JEKK View Post
    following

    I have a pi that is controlling other monitors and would like to see how I can feed the data to apex. anyone might be able to help? The log would include a value like "7.59" and probably a time stamp.
    You can't feed variables. As Russ stated there is no API. What you can do though is if there is a threshold that you want things to react to, you can program the pi to close a relay contact and have the apex respond based on the switch input.

    You might be an engineer if...You have no life and can prove it mathematically.

  9. #9
    New User
    Join Date
    Aug 2018
    Location
    BR, Brasilia
    Posts
    3
    Is it possible to read APEX values to add to an external system? Trying to build a local consolidated logger and it would be nice to get the readings to an external DB.

  10. #10
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by EwertonMoreira View Post
    Is it possible to read APEX values to add to an external system? Trying to build a local consolidated logger and it would be nice to get the readings to an external DB.
    Yes. You can use the xml data and pull the data into your logger on a daily basis using Xpath or Xquery. I was able to get Xpath working in Google docs, but the calculation time was too long and it could only go back a few hours. A full days data would crash. With a dedicated system without the calculation time limits, querying data daily should be no problem. The URL paths for XML data are described in the 2014 users manual.

    Sent from my SM-G965U using Tapatalk

  11. #11
    New User
    Join Date
    Aug 2018
    Location
    BR, Brasilia
    Posts
    3
    Quote Originally Posted by zombie View Post
    Yes. You can use the xml data and pull the data into your logger on a daily basis using Xpath or Xquery. I was able to get Xpath working in Google docs, but the calculation time was too long and it could only go back a few hours. A full days data would crash. With a dedicated system without the calculation time limits, querying data daily should be no problem. The URL paths for XML data are described in the 2014 users manual.

    Sent from my SM-G965U using Tapatalk
    Cool, thanks for the feedback. I will take a look at the manual. Meanwhile, just a question: are the values real-time values or historical data?

    Thanks
    Ewerton

  12. #12
    Frequent Contributor zombie's Avatar
    Join Date
    Dec 2013
    Location
    Denver, CO
    Posts
    13,176
    Quote Originally Posted by EwertonMoreira View Post
    Cool, thanks for the feedback. I will take a look at the manual. Meanwhile, just a question: are the values real-time values or historical data?

    Thanks
    Ewerton
    XML is historical. There was some way to get real time data directly from the fusion page that I saw in some thread about making Google home work with it, but I never tried it myself and am not versed in website coding. It may or may not be of benefit to you.

    https://www.reef2reef.com/threads/gu...e-home.319864/

    Sent from my SM-G965U using Tapatalk

  13. #13
    Master Control Freak RussM's Avatar
    Join Date
    Dec 2012
    Location
    California - US Pacific
    Posts
    22,463
    XML data is not just historical. There are multiple XML outputs - two of them, one in XML and the other in RSS format, give real-time status. You can also pull current output programming in XML format.
    Please do not send me PMs with technical questions or requesting assistance - use the forums for Apex help. PM me ONLY if the matter is of a private or personal nature. Thanks.

  14. #14
    New User
    Join Date
    Aug 2018
    Location
    BR, Brasilia
    Posts
    3
    Great!! Will take a look and see what I can do.

    Thanks
    Ewerton

Similar Threads

  1. Updated - How-To Setup A Raspberry Pi Stream Viewable through Fusion
    By Pyro919 in forum Camera & Media Integration with APEX Fusion, APEX Local, & Classic Dashboards
    Replies: 2
    Last Post: 07-21-2021, 00:39
  2. Replies: 4
    Last Post: 02-19-2019, 09:05
  3. Raspberry Pi Camera
    By ReefBeez in forum Camera & Media Integration with APEX Fusion, APEX Local, & Classic Dashboards
    Replies: 0
    Last Post: 01-16-2017, 09:39
  4. raspberry pi cam for apex neptune
    By bpiermat in forum DIY
    Replies: 9
    Last Post: 05-16-2014, 07:56

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •