- Forum
- Experiments and Projects
- Experiments
- API endpoint to read a station's last reading (for Home Assistant integration)
API endpoint to read a station's last reading (for Home Assistant integration)
2 years 6 months ago - 2 years 4 months ago #6161
by rjelbert
API endpoint to read a station's last reading (for Home Assistant integration) was created by rjelbert
Hi
I'd like to be a able to read my station data into my Home Assistant system. The most recently uploaded data would be fine.
I could use the web page on: https://radmon.org/radmon.php?function=showuserpage&user=rjelbert
... but the page is quite large and would put a lot of load on the radmon.org server if polled on a regular basis
It would be much better to have a minimal response endpoint like this: https://radmon.org/radmon.php?function=showuserdata&user=rjelbert
... if the response only contained the last reading (and perhaps the date/time it was uploaded) that would be perfect.
I'd be happy to share the instructions on loading the data into Home Assistant when I've done it. Does anything already exist or could it be added?
Thanks very much
R
UPDATE: I used the information provided in this thread and created a Home Assistant radmon.org integration. See: http://radmon.org/index.php/forum/projects/1252-home-assistant-integration-achieved-initial-configuration-files-provided
I'd like to be a able to read my station data into my Home Assistant system. The most recently uploaded data would be fine.
I could use the web page on: https://radmon.org/radmon.php?function=showuserpage&user=rjelbert
... but the page is quite large and would put a lot of load on the radmon.org server if polled on a regular basis
It would be much better to have a minimal response endpoint like this: https://radmon.org/radmon.php?function=showuserdata&user=rjelbert
... if the response only contained the last reading (and perhaps the date/time it was uploaded) that would be perfect.
I'd be happy to share the instructions on loading the data into Home Assistant when I've done it. Does anything already exist or could it be added?
Thanks very much
R
UPDATE: I used the information provided in this thread and created a Home Assistant radmon.org integration. See: http://radmon.org/index.php/forum/projects/1252-home-assistant-integration-achieved-initial-configuration-files-provided
Last edit: 2 years 4 months ago by rjelbert. Reason: updating with link to Home Assistant integration
Please Log in or Create an account to join the conversation.
2 years 6 months ago #6162
by mw0uzo
Replied by mw0uzo on topic API endpoint to read a station's last reading (for Home Assistant integration)
Yes, there is:
https://radmon.org/index.php/forum/howtos-and-faqs/864-radmon-org-api
See
Function
lastreading
Description
Gets the last reading for a station
Parameters
user
Examples
radmon.org/radmon.php?function=lastreading&user=mw0uzo
https://radmon.org/index.php/forum/howtos-and-faqs/864-radmon-org-api
See
Function
lastreading
Description
Gets the last reading for a station
Parameters
user
Examples
radmon.org/radmon.php?function=lastreading&user=mw0uzo
Please Log in or Create an account to join the conversation.
2 years 5 months ago #6163
by rjelbert
Replied by rjelbert on topic API endpoint to read a station's last reading (for Home Assistant integration)
Hi. That's perfect. thank you.
radmon.org/radmon.php?function=lastreading&user=rjelbert
...gets me what I need. I am working on the Home Assistant home automation software. I'll share how to integrate when I work it out!
thanks.
R
radmon.org/radmon.php?function=lastreading&user=rjelbert
...gets me what I need. I am working on the Home Assistant home automation software. I'll share how to integrate when I work it out!
thanks.
R
Please Log in or Create an account to join the conversation.
2 years 5 months ago - 2 years 5 months ago #6164
by rjelbert
Replied by rjelbert on topic API endpoint to read a station's last reading (for Home Assistant integration)
BTW great that you use a Raspberry Pi to host Radmon. I'm a big fan and run lots of things on my Pi 4 server. Here is mine in the case I designed & built. I notice your temp is quite high at 77.4 C . This is quite close to the throttling temp (80 C) so I'm curious to know if you have a heatsink / fan / case for it? My temp sits at 47 C but the case does have two fans!
Last edit: 2 years 5 months ago by rjelbert.
The following user(s) said Thank You: jnissen
Please Log in or Create an account to join the conversation.
2 years 5 months ago #6165
by mw0uzo
Replied by mw0uzo on topic API endpoint to read a station's last reading (for Home Assistant integration)
It runs fanless, and it's summer. So it runs very hot. It's got heatsinks all over it, so it never quite gets to throttling. Without the heatsinks it would be throttling almost immediately! But, even though it's scorching hot, it seems pretty reliable. It is slightly underclocked, I had an early version that wasn't stable at rated clock frequency.
The temperatures probably don't help the SD cards though.
The case did have a ventilated cover, but it restricted airflow too much. So just the base of the case is used to hold the board.
One of those machined heatsink cases with fans would probably be ideal for it...
The temperatures probably don't help the SD cards though.
The case did have a ventilated cover, but it restricted airflow too much. So just the base of the case is used to hold the board.
One of those machined heatsink cases with fans would probably be ideal for it...
Please Log in or Create an account to join the conversation.
2 years 5 months ago #6166
by mw0uzo
Replied by mw0uzo on topic API endpoint to read a station's last reading (for Home Assistant integration)
Oh, and that case. That is excellent!!! Nice work
The following user(s) said Thank You: rjelbert
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
- Forum
- Experiments and Projects
- Experiments
- API endpoint to read a station's last reading (for Home Assistant integration)
Time to create page: 0.192 seconds