API endpoint to read a station's last reading (for Home Assistant integration)

More
1 year 9 months ago - 1 year 8 months ago #6161 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
 
Last edit: 1 year 8 months ago by rjelbert. Reason: updating with link to Home Assistant integration

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #6162 by mw0uzo
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

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #6163 by rjelbert
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

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago - 1 year 9 months ago #6164 by rjelbert
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!

 
Attachments:
Last edit: 1 year 9 months ago by rjelbert.
The following user(s) said Thank You: jnissen

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #6165 by mw0uzo
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...

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #6166 by mw0uzo
Oh, and that case. That is excellent!!! Nice work :D
The following user(s) said Thank You: rjelbert

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.159 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 38% Memory 14% Swap 17% CPU temp=52.5'C Uptime 39 Days