Time Sync with external server

Requests for new functions or software apps
Post Reply
lukeluke
Posts: 88
Joined: Mon Apr 04, 2011 4:12 am
Location: Rome, Italy

Re: Time Sync with external server

Post by lukeluke »

ok thanks ;-)
lukeluke
Posts: 88
Joined: Mon Apr 04, 2011 4:12 am
Location: Rome, Italy

Re: Time Sync with external server

Post by lukeluke »

curt is possible modify other internal memory parameters trought the browser ?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Time Sync with external server

Post by rimai »

Yes, it is indeed, but the Real Time Clock (RTC) data is not within the internal memory block.
The RTC chip is the one that holds the time and keeps it up.
The controller also syncs with it periodically.
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Time Sync with external server

Post by binder »

lukeluke wrote:curt is possible modify other internal memory parameters trought the browser ?
Yes, you most certainly can. It is slightly more complex in doing this though. You must know the location and what type of value is stored there (byte or integer). These locations are stored inside ReefAngel_Globals.h and whether it is a byte or integer.

For working with Bytes:

Code: Select all

// Read the memory value
http://CONTROLLER_IP:2000/mbLOC
// LOC is the memory location

// Write the memory value
http://CONTROLLER_IP:2000/mbLOC,VAL
// there must be a comma (,) between LOC and VAL (which is the value)
For working with Integers:

Code: Select all

// Read the memory value
http://CONTROLLER_IP:2000/miLOC
// LOC is the memory location

// Write the memory value
http://CONTROLLER_IP:2000/miLOC,VAL
// there must be a comma (,) between LOC and VAL (which is the value)
I'm working on a program that will allow you to update the values from it without having to open up a web browser. I'm almost ready for an "alpha" release and hoping to have something later this weekend.

curt
Post Reply