Commit Graph
141 Commits
Author SHA1 Message Date
Ben West be183f5d1b include standard header for server.js at root. 2021-02-18 09:09:02 -08:00
Ben West 22f4336e7f re-install server.js at root
This continues to allow using server.js programmatically from the root of the
project.
2021-02-18 09:05:15 -08:00
Sulka HaroandGitHub d7e011d8f5 Refactoring organisation, bundling and security improvements (#6765)
* * Simplified bundling to just one bundle
* Removed cache invalidation token from bundling
* Generate strong persistent random string on deploy to use for JWT signing
* WIP: moving api-secret and JWT signing to a separate centralized security component
* Moved some server components away from project root
* Fix issues reported by linter

* Ignore detect-object-injection everywhere but the client

* Make admin message button red

* Remove alarms for some security alerts on code

* api_secret is now fully contained in the enclave
2021-02-02 19:53:30 +02:00
Sulka Haro 512139e5e0 Added some boot logging & allow booting using Node 14 LTS 2020-12-09 14:54:48 +02:00
Sulka HaroandGitHub 4ace12594e Move localisation to Crowdin (#6518)
* Update Crowdin configuration file

* Update Crowdin configuration file

* Add languages for pushing

* Update Crowdin configuration file

* Update source file en.json

* New translations en.json (Finnish)

* New translations en.json (Finnish)

* New translations en.json (Romanian)

* New translations en.json (Dutch)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Korean)

* New translations en.json (French)

* New translations en.json (Japanese)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* Remove folders

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Romanian)

* New translations en.json (Korean)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Japanese)

* New translations en.json (French)

* New translations en.json (Italian)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Norwegian Bokmal)

* Update Crowdin configuration file

* New translations en.json (Spanish)

* New translations en.json (Chinese Simplified)

* New translations en.json (Chinese Traditional)

* New translations en.json (Italian)

* New translations en.json (Croatian)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Japanese)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Finnish)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Norwegian Bokmal)

* Loading all languages now works

* * Fix unit tests
* Have server load localizations

* Adding some more keys

* New Crowdin updates (#6531)

* New translations en.json (Finnish)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Finnish)

* New translations en.json (Japanese)

* New translations en.json (Portuguese, Brazilian)

* New translations en.json (Chinese Traditional)

* New translations en.json (Chinese Simplified)

* New translations en.json (Turkish)

* New translations en.json (Swedish)

* New translations en.json (Slovenian)

* New translations en.json (Russian)

* New translations en.json (Polish)

* New translations en.json (Dutch)

* New translations en.json (Korean)

* New translations en.json (Italian)

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Hungarian)

* New translations en.json (Hebrew)

* New translations en.json (Greek)

* New translations en.json (German)

* New translations en.json (Danish)

* New translations en.json (Czech)

* New translations en.json (Bulgarian)

* New translations en.json (Spanish)

* New translations en.json (French)

* New translations en.json (Romanian)

* New translations en.json (Croatian)

* Update source file en.json

* New translations en.json (Norwegian Bokmal)

* New translations en.json (Norwegian Bokmal)

* Remove old translation status tool

* Update CONTRIBUTING
2020-11-17 14:17:17 +02:00
Petr OndrusekandSulka Haro 0def1f225e Add server teardown ability (#5410)
* adding teardown event to ctx.bus

* adding teardown support for mmconnect and bridge plugins
2020-01-06 11:08:05 +02:00
PieterGit 9c5a2e4bc6 remove mqtt leftover 2019-02-03 00:56:59 +01:00
PieterGit 0e2ae00320 npm update and remove mqtt 2018-11-20 01:15:51 +01:00
Sulka Haro 051576056a Moved server-specific sources to their own folder. Removed some unused code as per Codacy reports 2017-12-28 19:15:52 +02:00
Jason Calabrese d8b46eecdd refactor init so plugins can be localized 2016-10-15 10:54:20 -07:00
Jason Calabrese a1a1b9117c add new HOSTNAME env setting that can be used limit the hostname node will listen on 2016-10-09 09:53:32 -07:00
Scott Leibrand 437ba42b5c bind to ipv6 socket 2016-09-09 21:13:02 -07:00
Jason Calabrese 511fe2cdda first step towards exposing boot errors 2016-04-23 11:05:51 -07:00
Jason Calabrese 31ce8cbb92 lot of refactoring to have common settings for client and server 2015-07-30 13:46:13 -07:00
MilosKozak 9205bca915 move serverSettings outside bundle 2015-07-21 19:49:08 +02:00
MilosKozak 047cfa649e some examples added 2015-07-21 19:09:27 +02:00
MilosKozak 1a3a59b7db basic translation module 2015-07-21 17:50:37 +02:00
Jason Calabrese f6ef1c692a fix server start for case when mqtt hasn't been enabled 2015-07-06 17:59:13 -07:00
Jason Calabrese 251eb8ff52 send notifications over mqtt, some refactoring 2015-07-03 11:36:19 -07:00
Jason Calabrese 6093f9ee12 fixes and improvements to the all clear notification 2015-06-29 20:05:18 -07:00
Fokko Driesprong 03a98c1c9d I thought I had rewritten this to the old situation, but somehow it was lost. 2015-06-21 15:56:27 +02:00
Fokko Driesprong 7d149bafbd Correct MongoDB initalization, and removed the Bootsequence plugin as it did not provide any benefits anymore. 2015-06-20 20:59:08 +02:00
Jason Calabrese 48fad6870d a few more steps to get pushover hooked in the new way 2015-06-09 16:23:20 -07:00
Jason Calabrese bcd6b27ac5 ctx.bus 2015-06-09 08:24:34 -07:00
Jason Calabrese f52e80a0ea refactored websocket alarms into notifications.js 2015-06-07 01:54:15 -07:00
Jason Calabrese 811324edfa add new event when data is loaded and use that for updating websockets instead of tick 2015-06-07 00:43:36 -07:00
Jason Calabrese 84e655ad79 factored data loading and AR2 forecasts out of websockets 2015-06-06 01:02:28 -07:00
Jason Calabrese 4dfa2c438c ctx everywhere; fixed security.test.js 2015-06-04 23:20:18 -07:00
Ben West 82032f4392 Merge branch 'wip/mqtt/rebased' into wip/mqtt/init
Resolved Conflicts:
	lib/devicestatus.js
	package.json
	server.js
2015-03-18 00:03:31 -07:00
Ben West 6705b621d5 bring back ensureIndexes
Make sure indexes are created for commonly sought fields.
2015-03-17 23:43:48 -07:00
Ben West 469d86878e rebasing, it seems to run 2015-03-17 22:40:02 -07:00
Jason Calabrese 647dec228e display uploader battery next to time ago 2015-03-15 23:23:57 -07:00
Jason Calabrese 98417aeb7c Merge branch 'dev' into wip/mqtt/init 2015-03-15 11:34:43 -07:00
Jason Calabrese b7fc6b932b added initial compression of everything so we can start testing and see if there are any issues 2015-03-13 17:29:02 -07:00
Jason Calabrese f21c3176e0 updated with dev 2015-03-07 23:46:31 -08:00
Jason Calabrese 7bd94466b5 move all the browserify bundle config to a new module 2015-03-07 16:41:27 -08:00
Jason Calabrese a693304ab2 now using new IOB module for /pebble 2015-03-01 11:48:55 -08:00
Jason Calabrese 91365a7f1e Merge branch 'wip/enable-profile' into wip/enable-iob 2015-03-01 10:57:15 -08:00
Jason Calabrese 7f550b8cf5 start getting browserify-express hooked up to expose a shared IOB module 2015-03-01 10:56:40 -08:00
Jason CalabreseandJason Calabrese 6080f67816 more cherry-picking and porting of the profile api/storage from iob-cob 2015-02-25 22:59:42 -08:00
Jason Calabrese d52980148c merged master into mqtt/init 2015-02-16 00:57:32 -08:00
Jason Calabrese 3daa7d9857 inital support for send raw bg data with /pebble 2015-01-29 23:24:53 -08:00
Kevin Lee e4d6675715 Merge remote-tracking branch 'origin/dev' into wip/mqtt/init
Conflicts:
	lib/devicestatus.js
2015-01-08 19:17:03 -06:00
Kevin Lee 650bcd1aae First pass at adding MGB, Sensor, Calibration, and Device Status records via MQTT
New method to create device status with a backdated timestamp
2014-12-31 03:02:46 -06:00
Ben West c8be1deb9d get mqtt basically working, very rough 2014-11-22 16:40:48 -08:00
Ben West 629c258c3f add option to host over ssl 2014-11-13 22:00:25 -08:00
Jason Calabrese a2df246dbb fixed type when creating the pebble endpoint 2014-10-31 00:44:48 -07:00
Jason Calabrese f37942ab83 renamed entries.api() to entries.storage(); renamed entriesAPI to entriesStorage; also ensure indexes for treatments and devicestatus collections 2014-10-31 00:13:40 -07:00
Jason Calabrese 9129099651 ensure indexes on the date, type, and sgv fields for the entries collection at startup 2014-10-29 00:11:35 -07:00
Jason Calabrese efb4aa96e7 when a recent MBG is received via the api and pushover is configured send a notification 2014-10-19 22:33:15 -07:00