Discourse/Uncategorized/2019-08-07 Announcing FT Web A web interface to the Flaschen-Taschen And an HTTP API
|
📜 Discourse Archive |
Announcing FT Web: A web interface to the Flaschen-Taschen! (And an HTTP API!)[edit | edit source]
elimisteve — 2019-08-07
TL;DR: If you’re @ NB, visit http://pegasus.noise:4444 on your phone or laptop and specify the text, image, gif, or video you want displayed on the Flaschen-Taschen… and it shall instantly appear![edit | edit source]
Screenshot: FT Web desktop interface[edit | edit source]
[https://discuss.noisebridge.info/uploads/default/56073efb8371ce2b3a0792dab4171ab938224ae8 * screenshot-noisebridge-ftweb-interface-Screenshot_2019-08-06_19-39-00.png750×604 39 KB ]
(And yes, it’s responsive/looks ~good on mobile!)
Action Shots[edit | edit source]
Hello, Discourse!
[https://discuss.noisebridge.info/uploads/default/3fffaea6edf33e4d087d82365fbe4775f3adee48 noisebridge-ftweb-hellodiscourse1-Wire 2019-08-06 at 11_17 PM.jpeg1546×1160 244 KB ]
[https://discuss.noisebridge.info/uploads/default/e35536d9fa254982a1dca907915ddb21670ae7d7 noisebridge-ftweb-hellodiscourse2-Wire 2019-08-06 at 11_17 PM.jpeg1546×1160 344 KB ]
Why FT Web?[edit | edit source]
Noisebridge should have a very* beginner-friendly introduction to Noisebridge – one that enables people to use their phone as a remote control for their physical environment, in this case!
Instant coolness gratification within the first minute someone enters the premises == A Good Thing * – no CLI tools/custom UDP protocol-speaking shtuff needed… but of course all that is still there for those who want to use it!
Use Cases[edit | edit source]
Looking for the perfect accessory to a crime the Noisebridge tours you give? Tell newcomers to visit http://pegasus.noise:4444/ , or to visit https://pegasus.noisebridge.net then click Play*, then specify the text or upload the image/gif/video they want to see – and up it shall show.
Code / Contribute![edit | edit source]
Check it: https://github.com/elimisteve/ft-web . PRs welcome!
The repo has been forked to https://github.com/noisebridge/ft-web so it’s easy to find *.
All zero unit tests pass .
Thank Yous[edit | edit source]
Thank you to @hzeller for adding the `send-text -i <file>` CLI arg so that I could securely accept user input without needing to worry about CLI injection crap!
Also, thank you to @metasyn for brainstorming with me about the various ways to do this. This solution may not be elegant, but it was quick to build and works great! (Rewriting some of the C++ CLI tools into Python would be cool.)
And a big* thank you to @gaardn for encouraging me to follow through on this project idea; I’m glad we did .
Paul_H __[edit | edit source]
Awesome! I can’t wait to try this, and will try to use it on tours as much as possible etc!
Thanks to everyone who made it and contributed!
One thought, if it is not too difficult, can we change the URL to something other than 4?
Maybe http://pegasus.noise:9999/ ???
The reason being that the number 4 is considered unlucky in many East Asian cultures, and I don’t really want the stigma to be there when giving a tour, welcoming people to the space, and so on…
Please see for reference:
Today I Found Out – 20 Jan 11
Why the Number Four Is Considered Unlucky In Some East Asian Cultures[edit | edit source]
Today I found out why the number four is considered to be unlucky in some East Asian cultures (mainland China, Japan, Korea, and Taiwan, among others). In the Chinese culture, whether a number is considered auspicious or not typically...
elimisteve — 2019-08-07
elimisteve:
> Tell newcomers to visit http://pegasus.noise:4444/ , or to visit https://pegasus.noisebridge.net then click Play
@Paul_H Telling them to do the latter isn’t good enough? Think they’ll notice the port number/care?
Paul_H _2019-08-07_[edit | edit source]
Hmm, I think the later link is ok. I actually checked the git repos and it looks like you have this URL in many places, so it is probably fine to keep it that way. I will see if we get any comments on tours.
Look forward to trying this. Thanks!
elimisteve — 2019-08-08
Hey @Paul_H, good news! I just configured Apache to proxy http://pegasus.noise:9000 through to its own port 4444, so now either port can be used . I have also changed the Play link at https://pegasus.noisebridge.net/ to point to port 9000.
Paul_H __[edit | edit source]
Awesome! Can’t wait to try this out. In fairness, I might have tetraphobia.
simple.wikipedia.org
Tetraphobia[edit | edit source]
Tetraphobia is a fear of the number 4. It is a superstition found most often in East Asian areas, for example China, Japan, Korea, and Taiwan.
The Chinese word for four (四, pinyin: sì, jyutping: sei3), sounds very similar to the word for death (死, pinyin: sǐ, jyutping: sei2). Chinese people take care not to use the number 4 during important holidays, or if someone in the family is sick. Numbers such as 14, 24, and so on, are not used because they also have the number 4 in them. Buildings somet...
But I know other people would share it too, and it is a bit like seeing a 666 in a url or something, it is just going to leave a stigma whether you are superstitious or not, well, at least IMO. So this is a welcomed fix!
I will try this out by Tuesday latest and post photos of what I can on the Taschen. Love how Noisebridge is getting connected with Mary and the taschen. Another nice hack would be to schedule the things Mary says to coincide on the Taschen, like for the “Every body clean up” Thursday jingle to take out the trash could also flash “Take out trash” on the taschen…and so on. Or subtle requests to donate, etc…
Paul_H _2019-08-09_[edit | edit source]
[https://discuss.noisebridge.info/uploads/default/8fa1e604633993b9275836fcae7ca2d046e91d7e IMG_20190808_211416.jpg2138×2851 2.82 MB ]
[https://discuss.noisebridge.info/uploads/default/d92a3958e9947ccc378a7b3ba01bc257a7cb4de9 IMG_20190808_210709.jpg2138×2851 2.42 MB ]
Had fun posting the Italian Flag and party parrot to the Taschen today. Thanks Steve!
One thing though is that the image or text would only run for 10-20 seconds and then the page would forward to something like
http://pegasus.noise:9000/api/text
With only
``` {"output":""} ```
on the page.
Sorry if there is already an issue tracker on the git repo.
I am using Chrome on Linux.
That was a bit counter-intuitive, so… I made it great! The homepage comes back once the request ends, and there’s a flash message that shows any errors that occurred rather than responding with JSON that the user need not see.
…aaand it still works without even needing to enable JavaScript – something that some people will want – and in that case it defaults back to the behavior you saw before (replying with JSON).
I also made some CSS tweaks to make it look great in Firefox, too, not just Chrom{ium,e} .
For those who want to add additional features, check out https://github.com/elimisteve/ft-web and ask me if you have any questions.
Paul_H _2019-08-13_[edit | edit source]
It works a lot better now, thanks Steve! I tried to get the Taschen to thank you, but the text scrolled to quickly.
[https://discuss.noisebridge.info/uploads/default/3665e31703f6c23742ab7add31a0ffdb5c3642c7 IMG_20190813_103957.jpg2138×2851 2.34 MB ]
I don’t want to keep bringing up points, but it would be nice if we could set the number of times the text scrolls, right now it is just one time. Images also seem to have a short shelf life. More of a wishlist than a priority. Thanks for all the effort.
elimisteve — 2019-08-13
@Paul_H Glad you like it, and you’re welcome .
@hzeller When I ask `send-image` to show an image for 30 seconds, it seems to stay for about 10. Maybe I’m doing something wrong?
elimisteve — 2019-08-13
@hzeller Or maybe I should just lengthen the time it’s displayed? I thought maybe that wouldn’t work if that layer is being written over or something, but I made images show up on layer 12, so I don’t think that’s the issue…