[Wiki] HTTP Features and Endpoints

Worth asking but yes I am.
192.168.0.33/advanced/event/limit/15

Yes. All my hubs are up to date and this is happening on all of them.

Looks like you accidentally dropped the /hub/ at the beginning of the command.

5 Likes

DOH!!!!!!
I assumed the 'hub' was to be replaced with the IP address. :blush:

5 Likes

Good catch!

4 Likes

according to @thebearmay
"Finally, there’s a small button underneath the hub that will force a reset of the DHCP settings on the hub (after which reboot the hub and try the find actions again.)"

Hasn’t been a hidden feature for a while:

The button itself is pretty well hidden though :wink:.

5 Likes

Very Helpful!

@Hasty1

How about the NTP endpoints, are they worthwile adding to the list?

There is no DHCP setting for NTP, true, but we got these endpoints (since 2.2.4):

http://hubitat.local/hub/advanced/scanForNtpServers - scans local network for NTP servers and shows the list.
http://hubitat.local/hub/advanced/ntpServer - shows current NTP server
http://hubitat.local/hub/advanced/ntpServer/<-value-> - sets NTP server

EDIT: NOT WORKING ANYMORE

Going through the available commands i found that the following are stale (error 404)

http://hubitat.local/hub/stats
http://hubitat.local/hub/enableStats
http://hubitat.local/hub/disableStats

and

http://hubitat.local/hub/advanced/freeOSMemoryStatus

4 Likes

This is genius. I am gonna have to go and buy a few more plugs now for when the grand-kids come over and start the recliner wars.

3 Likes

The initial post is a [WIKI] now.
Backlinked here

I think restart is gone as well...

2 Likes

This one works for me as of 5 seconds ago

1 Like

Is there any endpoint that returns the date time when the hub starts from a reboot?

Are you looking to find out when the hub rebooted? If so, you can get this from the Logs under the -> Hub Events tab. You will see “systemStart” under “Name”.

If you are looking for getting this date internal to the hub, you can see [RELEASE] Hub Information Driver v3. Install that and access the lastHubRestart or lastHubRestartFormatted via that device. Or you can look at the code to see how it computes it from location.hub.uptime.

2 Likes

Thanks

Is there a way to find out hub incoming voltage? Kind of like the /hub/advanced/internalTempCelsius command?

No.

1 Like

Hey, it was worth a shot. :slight_smile:

1 Like

Note that the hub's power connection is micro-USB, so you'd only get a 5V reading (at best).

3 Likes