@John-Landgrave From what device are you viewing the page from? There is an issue with IOS that I have not figured out yet.
Posts made by Jo Kritzinger
-
RE: http://cloud.onion.io/ appears to be down
-
RE: WiFi Signal Strength Status
Me too, would also like to know. Be great to be able to use the Omega as a WiFi strength mapper (maybe add in GPS and a second module also with GPS to implement a poor man's DGPS?)
-
RE: Omega 2+ Blynk-library couldnt install
Hi. I have recently installed blynk on an Omega2 and it seems to work with the test CLI line. Like you, however, I have not found much documentation. How'd you go, have you made it work yet?
-
Blynk as service
Hi guys,
I am using blynk to toggle a gpio that in return is seen by a c app that in turn grabs a copy of a image, stored by a mjpg_streamer running in the background (in /tmp that that is a ram disk - trying to avoid exceeding flash memory rd/wr lifespan) , and sends the pic via mailsend to my address as well as a pushing notification via Pushover to tell me to check my mail. (The idea is that the gpio can be triggered via blynk or a physical event like an alarm going off or someone ringing a doorbell.) I know that I could probably make this all a lot easier by making the Omega2 available from outside my network (and using PHP via a browser do it all), I've seen a few guys talking about that and quite a few warned about the security aspect of doing that.
So, this way, as convoluted as it is, I can get to the Omega without altering my router or anything.
I am an procedural programming dabbler (C in fact on old style 8051's) so writing OOP in C++ or JS or whatever is like rocket science to a burger flipper. Oop is on my bucket list but low on the priority scale.
This is just a way I figured to make it work.
And it does.
The issue I'm having is with blynk. I can get it working fine. I launch blynk (ON-OFF) on an Omega2 with the test CLI command as per Onion's documentation
node /usr/bin/blynk-library/bin/blynk-client.js <my Token>
I then push it into the background with aCtrl-Z
followed by abg
command on the ssh session. I have a simple sketch to toggle a gpio from my iPhone, and, it works great. However, after a day or so, blynk is not running anymore.HOW do I keep it running or relaunch it if it is not? AND, how could I find out why blink is dying? WHAT is the best way to launch blynk sort of like a deamon?
I could pull some convoluted shit, but would prefer not to, by getting my C prog to launch something like a
system("top | grep blynk > running.txt")
every now and then in the main loop, opening and examining that file and if it finds blynk not running, launch it again with something like a
system("node /usr/bin/blynk-library/bin/blynk-client.js <my Token>")
I had a look at blynk-client.js but, being a procedural programmer, I am unable to find the main loop so not sure what I can do there. Nor do I know if the blynk library has amIRunning() and reLaunch() type of functionality. And the Onion Omega specific help on the Blynk site is non existent. It seems also that there is a C++ lib but (apparently) for the Omega. I do have a cross compiler setup in Docker thanks to the very helpful @José-Luis-Cánovas but obviously that would need a rebuild with a blynk library for C/C++ if that is available.
Have any of you guys done something like this or worked with the blynk library or have some insights or some way to modify the blynk-client.js to take care of it automatically. "C'mon mister, spare a poor beggar a bit of info."
-
RE: Register Cloud does NOT work..
@Jo-Kritzinger Got it working using CLI. Still.... not great is it?
-
RE: Register Cloud does NOT work..
What, is this groundhog day? Same is happening to me today.
C'mon onion... -
Cloud shows device offline
Hi guys.
Anyone having issues with the cloud, in particular device explorer?
It keeps telling me that the device is offline despite it being powered up, connected to the network and accessible via blynk.
Reboot did not fix it either.
And suggestions?
Don't know if this means anything to anyone but, I did a
device-client -v
which resulted in
>> Starting device client >> Starting listening... >> Sending request to 'ds.onion.io/?1`w?1`w?/listen?key=?1`w?1`w' >> Write_callback: received '23' bytes, time: 'Fri Mar 10 04:31:33 2017 ' >> Write_callback: valid json: '{"error":"auth failed"}' error : "auth failed" >> Completed GET > Connection lost! > Restarting connection (restart #1) ... >> RESPONSE THREAD! >> Sending POST to url: '', post data: '{"error":"Could not find 'command' object! "}' >> POST Sent! (url: '') Error: Error >> Closing RESPONSE THREAD
-
RE: [Project] Docker Omega2 SDK for Cross Compilation + CMake support
@José-Luis-Cánovas So, the code from edit 1 just at a normal prompt on my Mac?
-
RE: [Project] Docker Omega2 SDK for Cross Compilation + CMake support
@José-Luis-Cánovas Haha, no worries. When I have a block of time I'll sit down and give this a go. I'm assuming this is all run (esp the first chunk of code) from within docker, i.e. at the omega@xxxxxx prompt?
By the way, I really appreciate your help.
-
RE: [Project] Docker Omega2 SDK for Cross Compilation + CMake support
@José-Luis-Cánovas Hi José. I have been doing other stuff and am just getting back into this.
I'm still missing something. I think I have the right one running, checked by doing a docker ps that resulted in628a8ef6b111 jlcs/omega2-docker-built "bash" 27 minutes ago Up 3 minutes omega2-sdk-app-built
Also
/lede/staging_dir/target-mipsel_24kc_musl/include
and/lib
are both empty.This is the result from the compiler:
mipsel-openwrt-linux-gcc -Wall testSpi.c -loniondebug -lonionspi -o testspi.out /lede/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/5.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: cannot find -loniondebug /lede/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/5.4.0/../../../../mipsel-openwrt-linux-musl/bin/ld: cannot find -lonionspi collect2: error: ld returned 1 exit status
Any advise?
Thank you.
-
RE: mjpg_streamer would like to capture stills on SD card
I have lost mjpg-streamer for some reason but it's weird....
When I try to call it I get a
-ash: mjpg-streamer: not found
But....root@Omega-xxxx:~# find / -name mjpg-streamer /etc/config/mjpg-streamer /etc/init.d/mjpg-streamer /overlay/upper/etc/config/mjpg-streamer /overlay/upper/etc/init.d/mjpg-streamer root@Omega-xxxx:~# opkg list-installed | grep mjpg-streamer mjpg-streamer - r182-8
I have removed and re-installed. No luck.
Any ideas?
Ooh, HAHA, I'm such a dummy! :rolling_eyes: . the package is
mjpg-streamer
but the app ismjpg_streamer
. -
RE: do_page_fault(): sending SIGSEGV to fast-gpio for invalid read access from 00000600
@WereCatf So a wget into /tmp folder and a opkg install? I'll give it a go, thank you.
-
RE: do_page_fault(): sending SIGSEGV to fast-gpio for invalid read access from 00000600
@Chris-Stratton I did a
find / -name devmem
which resulted in zero hits. I don't know (yet - new to linux world) how to make a custom build and that's why I asked @Lazar-Demin to include it in the build. I'd be grateful if you could guide me how to add it myself. -
RE: do_page_fault(): sending SIGSEGV to fast-gpio for invalid read access from 00000600
@Chris-Stratton Thanks for clearing that up Chris. Where is the
devmem
tool? -
RE: Connecting to a FTP server
@WereCatf Thank you, I did notice that one but, being a bit of a fish out of water with linux, it seemed a bit over my head for now. But, I will check it out again.
-
RE: Connecting to a FTP server
@José-Luis-Cánovas Hi José. Thanks for your reply. I did notice those packages but, unless I misunderstand what they do, they are not really suitable. I don't want to start a version control system or a ftp server. The php module sounds interesting but I don't run PHP (yet...never know ). I have wget but my impression is that it is geared for pull data from the web. I need to upload from the omega to a web server.
However, I notice since the new firmware update (or perhaps since addingsrc/gz reboot_packages http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages
to /etc/opkg/distfeeds.conf thanks to @werecatf helping me in the #topic mjpg_streamer would like to capture stills on SD card#) I have access to more options and a few of them seems like it is exactly what I need:
atftp - 0.7.1-5 - TFTP client
and
openssh-sftp-client - 7.4p1-1 - OpenSSH SFTP client.
If I'm heading in the wrong direction, let me know, I appreciate all the help I can get.