ArchiveSW - Display & Data Archive Storage

An interesting concept but I had not heard of this. Now I will have to investigate this find of yours. Thank you for sharing this.

1 Like

I posted a new image in the original message (scroll up 6 posts). Thank you to everyone that sent emails and and privates messages. After reading all of your comments I decided it will better to write everything myself.

As you can see in the image, I started over and I am happy to say that I wrote all the code from line one. It’s not very pretty but it’s functional and clean, It’s 100% JavaScript and all the work is done in the browser. This removes any stress on the RPi and you can scale this to a hundred devices with no issues.

I am currently running three phones, four tablets and seven computers all displaying the proper data. One of the best features is automatic reconnect should the network or RPi reboot. I have one tablet that has been running for five days and still going strong.

The demo is ready but there is still much work to do. I have not put any calculations or conversions in the code. Fortunately the formulas and converters are already written in JavaScript and I just have to add the JavaScript file to the RPi so it can send it to the browser.

Thank you to all that have supported this project.

8 Likes

Gary:
I loaded WFArchive this weekend - it’s great to be able to have a LOCAL stash of my weather data - thank you so much!

Regards,
Paul

2 Likes

This the the WFArchive Panel running RPi 7" touch screen. It’s still a work in progress but I’m pleased to see how nice it looks on the screen.

IMG_20180925_224259

5 Likes

Can you add an optional style using faux 7-segment LEDs? Gotta make it appeal to the Davis owners… :rofl:

3 Likes

I’m a professional programmer. I can make everything look terrible.

7 Likes

Now that’s funny . . . I don’t care who y’are.

3 Likes

@GaryFunk
Hi there.

RPi been running all week and I see a few issues. Could be something on my RPi however I thought you want to know. I have not updated all week, will go do that now. In the meantime have a look. Let me know if you have questions or suggestions. Thanks.

The Citizen.err file was over 120 meg in size. I deleted it and let it do its thing. Looks to be 1 exception happening often and growing quickly.

TypeError: Cannot read property ā€˜on’ of undefined
at Object. (/home/pi/WFArchive/wfarchive/cwop.js:74:5)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:75:21)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)

Also noticed there are 2 Server error files. Server.err and server.err.
image

In ā€œserver.errā€ is one exception that repeats
Error: Connection lost: The server closed the connection.
at Protocol.end (/home/pi/WFArchive/wfarchive/node_modules/mysql/lib/protocol/Protocol.js:112:13)
at Socket. (/home/pi/WFArchive/wfarchive/node_modules/mysql/lib/Connection.js:97:28)
at Socket. (/home/pi/WFArchive/wfarchive/node_modules/mysql/lib/Connection.js:502:10)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)

In ā€œServer.errā€ - Looks to be the same error
Error: Connection lost: The server closed the connection.
at Protocol.end (/home/pi/WFArchive/wfarchive/node_modules/mysql/lib/protocol/Protocol.js:112:13)
at Socket. (/home/pi/WFArchive/wfarchive/node_modules/mysql/lib/Connection.js:97:28)
at Socket. (/home/pi/WFArchive/wfarchive/node_modules/mysql/lib/Connection.js:502:10)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
at process._tickDomainCallback (internal/process/next_tick.js:219:9)

1 Like

Saw this post had to laugh (or cry) - I have an upcoming project @work to port a COBOL app to something more modern for use in another application. Should be interesting…or painful…or who knows?..

2 Likes

HI, Mark ( @mao

I have uploaded new scripts that address all of the issues.

Citizen (cwop) will now allow you to write the out going data to a separate dbg file if needed.

The issues with the .err files has also been addressed. You may delete all .err files and they will only be created when needed.

Please let me know if you see any more issues.

Thanks Gary. Will do.

1 Like

What is the proper way to update?
I updated but looks like I am getting the same errors.
Could be user error here.

1 Like

To clarify.

Citizen.err

TypeError: Cannot read property ā€˜on’ of undefined
at Object. (/home/pi/WFArchive/wfarchive/cwop.js:75:5)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)
at Object. (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:75:21)
at Module._compile (module.js:653:30)
at Object.Module._extensions…js (module.js:664:10)
at Module.load (module.js:566:32)

1 Like

After you update you will need to restart the scripts marked as a service. You do this on the Process Management tab.

Roger that, I did do that. Let me do it again just to make sure.

1 Like

Ok, did it. Do not see any server error logs, but Citizen is not happy.
When I look at the Versions Tab seems like the same versions as before.
image

1 Like

Something is not correct. Citizen did not start.

Its running, I did stop and restart it to make sure.
image

1 Like

Do all the versions look correct?

1 Like

Well, there is an issue. PM the cwop section of your Config screen, please.