changeset 1430:445e24e8c8bb

lib upgrades; fix a static http server path Ignore-this: f48022f37590e8bdb16957c49168d31b darcs-hash:018ffeb640e1ce9307daf4a320fbd0c807e66a07
author drewp <drewp@bigasterisk.com>
date Thu, 08 Aug 2019 16:54:46 -0700
parents 262ad47a9743
children af2d0249a2cc
files service/piNode/piNode.py service/piNode/requirements.txt service/piNode/tasks.py
diffstat 3 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/service/piNode/piNode.py	Thu Aug 08 16:53:31 2019 -0700
+++ b/service/piNode/piNode.py	Thu Aug 08 16:54:46 2019 -0700
@@ -325,7 +325,7 @@
     static = pkg_resources.resource_filename('homeauto_anynode', 'static/')
 
     reactor.listenTCP(9059, cyclone.web.Application([
-        (r"/()", cyclone.web.StaticFileHandler, {
+        (r"/(|output-widgets.html)", cyclone.web.StaticFileHandler, {
             "path": static, "default_filename": "index.html"}),
         (r'/static/(.*)', cyclone.web.StaticFileHandler, {"path": static}),
         (r'/stats/(.*)', StatsHandler, {'serverName': 'piNode'}),
--- a/service/piNode/requirements.txt	Thu Aug 08 16:53:31 2019 -0700
+++ b/service/piNode/requirements.txt	Thu Aug 08 16:54:46 2019 -0700
@@ -1,8 +1,8 @@
-RPi.GPIO==0.6.2
+RPi.GPIO==0.6.5
 cryptography
 cyclone
 docopt
-etcd3==0.8.1
+etcd3==0.10.0
 git+git://github.com/adafruit/Adafruit_Nokia_LCD
 git+http://github.com/drewp/scales.git@448d59fb491b7631877528e7695a93553bfaaa93#egg=scales
 http://abyz.me.uk/rpi/pigpio/pigpio.zip
@@ -19,7 +19,8 @@
 cycloneerr
 devices_shared==0.3.0
 export_to_influxdb==0.1.0
-homeauto_anynode==0.5.0
+homeauto_anynode==0.8.0
 patchablegraph==0.5.0
 rdfdb==0.8.0
-standardservice==0.4.0
+standardservice==0.6.0
+patchablegraph==0.5.0
--- a/service/piNode/tasks.py	Thu Aug 08 16:53:31 2019 -0700
+++ b/service/piNode/tasks.py	Thu Aug 08 16:54:46 2019 -0700
@@ -13,11 +13,9 @@
 def push_image(ctx):
     ctx.run(f'docker push {TAG}')
 
-#	(cd /my/proj/homeauto/service/arduinoNode; tar czf /my/site/projects/rdfdb/more2.tgz static)
-
 @task(pre=[build_image])
 def shell(ctx):
-    ctx.run(f'docker run --name={JOB}_shell --rm -it --cap-add SYS_PTRACE --net=host {TAG} /bin/bash', pty=True)
+    ctx.run(f'docker run --name={JOB}_shell --rm -it --cap-add SYS_PTRACE --net=host --uts=host --cap-add SYS_RAWIO --device /dev/mem  --privileged {TAG} /bin/bash', pty=True)
 
 
 @task(pre=[build_image])