-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring master into Timescale branch. (#87)
* Changes for SCMN deployment. * Added Wombat config script info to webapp. * Wombat page changes - fixed log upload script, added data upload command. * Fixed update mapping functions. * ..New tap when open Map * Added axistech poller, changed logging in docker compose. * Adding the axistech module. * Changed axistech message format. * Changed handleSubmit to check if event parameter was supplied. * Logical mapper drops messages whose timestamp is too far into the future. The REST API messages endpoint can now take a physical or logical device id. * Fixed pytest unit tests for the /message REST API endpoint. * AxisTech API only accepts a specific timezone suffix, so changed to use that. * Added the ability to include logical device properties in the ld ls command via the --properties flag. * DB init script now creates version table so DB v1 backups restore cleanly. * Added the ability to include logical device properties in the ld ls command via the --properties flag. DAO & RestAPI updated to handle PostGIS geometry location column. Removed backoff annotations from DAO, they have not been useful. Changed errors raised by the DAO to be ValueErrors when parameter validation fails. * Restoring lost changes to files. * Restoring lost upgrade script. * Webapp changes to handle the geometry location columns. * Removed unused variable. * Fixed webapp map code to handle location lat or long being None, changed docker compose service restart and logging policies. * Issue 82 (#83) Implements issue #82 * More PostGIS and axistech fixes from SCMN (#86) * Issue 82 (#83) (#85) Implements issue #82 * Added extra error logging to axistech receiver. --------- Co-authored-by: dajtxx <[email protected]> * Added Extract.py to read timeseries data from IoTa database. * Fix typo in axistech dependency * Fix the typo again. --------- Co-authored-by: dpi-group <[email protected]> Co-authored-by: Mal Kul <mkul@griffin-water> Co-authored-by: mal-22 <[email protected]> Co-authored-by: mal-22 <[email protected]> Co-authored-by: dajtxx <[email protected]>
- Loading branch information
1 parent
1cb0487
commit 281b9bc
Showing
27 changed files
with
1,364 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CREATE EXTENSION postgis; | ||
CREATE EXTENSION pgcrypto; | ||
|
||
SELECT AddGeometryColumn('logical_devices','geom',4283,'POINT',2); | ||
SELECT AddGeometryColumn('physical_devices','geom',4283,'POINT',2); | ||
|
||
UPDATE logical_devices SET geom = ST_MakePoint(location[1], location[0]) WHERE location IS NOT NULL; | ||
UPDATE physical_devices SET geom = ST_MakePoint(location[1], location[0]) WHERE location IS NOT NULL; | ||
|
||
ALTER TABLE logical_devices DROP COLUMN location; | ||
ALTER TABLE physical_devices DROP COLUMN location; | ||
|
||
ALTER TABLE logical_devices RENAME COLUMN geom TO location; | ||
ALTER TABLE physical_devices RENAME COLUMN geom TO location; | ||
|
||
TRUNCATE version; | ||
insert into version values (2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.