@Jason-Hamlett Hi, given that you have code to toggle the light on and off, it should be relatively straightforward to set crontab entry/entries to toggle on and off according to your schedule. Let me know if you want any detailed advice on using crontab - I have used it regularly in the past.
Thanks for the pointer! I think there is more going on here though -- after I plugged in a USB hub to be able to test this device and use another USB device at the same time, it magically showed up in /dev/input. No idea why as the hub isn't powered or anything... but at least it's working now. I'll just tuck the hub in with my project.
Thanks - that looks like the best answer.. I have, however, since tried to cross compile python3 and had to start again.. So now I have a different problem that wasn't there before and I'm not doing anything different - I can't get python3 running as well as the normal version2.
I will post a different thread for that one. Then come back to your solution.. Thanks..
For Pirate Box it says:
Your device needs to be compatible to AttitudeAdjustment release from OpenWrt. The current trunk and BarrierBreaker release is not supported, because we can't guarantee it as working.
Flash your device with OpenWrt refering to OpenWrt wiki.
https://piratebox.cc/openwrt:manual#install_piratebox_without_a_custom_image
After reading the datasheet looks like I'm using the wrong decode mode. Here are the steps in case anyone is having the same problem
Following is the wiring
Following is the test bash script
#!/bin/sh
#set power ON
spi-tool -b 0 -d 1 write 0x0C 0x1
#set scan limit
spi-tool -b 0 -d 1 write 0x0B 0x0f
#decode mode
spi-tool -b 0 -d 1 write 0x09 0x01
#Set each display in use to blank
for i in 1 2 3 4 5 6 7 8 9
do
spi-tool -b 0 -d 1 write 0x$i 0x0
done
for i in 1 2 3 4 5 6 7 8
do
spi-tool -b 0 -d 1 write 0x$i 0x11
done
sleep 1
for j in 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF
do
for i in 1 2 3 4 5 6 7 8
do
spi-tool -b 0 -d 1 write 0x$i $j
done
sleep 1
done
Seems like the issue is with the mounting of the filesystem. Found the fix via this blog https://drewsymo.com/2016/05/09/fixing-error-writing-fstab-read-only-file-system-2/
How come the wiki page does not include instruction to remount / so we can edit the fstab file ?
Able to mount the USB as /overlay now
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 7560360 38800 7114472 1% /
/dev/root 7680 7680 0 100% /rom
tmpfs 30576 500 30076 2% /tmp
/dev/sda1 7560360 38800 7114472 1% /overlay
overlayfs:/overlay 7560360 38800 7114472 1% /
tmpfs 512 0 512 0% /dev
@Neil-Kolban Have not yet read your books, time constraints. Stopped playing with the omega due to the lack of response here from the vendor and to be honest the few that seem to think they walk on water when the respond to questions.
Having said that the book would be great for those that like doing this stuff as a hobby but the restriction would be changes to the book to match changes in the product. Ebook would address this and keep it current.
If I do break out and dust off the Omega it would be nice to find answers in your book to a fast and quick ramp up.
@Kit-Bishop said in RGB Linux Kernel Code:
Some sample code for driving the MAX7219 from the Arduino can be found at
@Kit-Bishop just bought this MAX7219EWG module and was able to drive it using Arduino (using the LedControl library). Now planning to play around with it using your library. Need help to check if the below table wiring is correct (not sure about the CS)
LED Matrix <----> Omega
VCC <---> 5V
GND <----> GND
DIN <-----> 6
CLK <-----> 7
CS <-----> ??
Is there a way to make this more visible to Onion team ? I think failing to require net/http is pretty serious problem for device that declares to have ruby support.
@None-None nice. i will take a look at the whole circuitry when im back from holidays in 4-5 days!
But my first guess would be that (although i havent looked into its circuitry) that the protection circuit also discharges the battery? because normally you want them to be at ~70% of their load when storing them
@Laurence-HR if you participated sharing on Facebook and Twitter, just let them know your Facebook and Twitter account ... so they can check if you participated and just then you will be able to get the free shipment. To all participating means to them who shared before kick-starter started ...
@buzztiaan-buzztiaan said in Omega1 ; plain openwrt? piratebox?:
Kinda suprises me the wiki doesnt say how to setup a AP mode on the omega etc.
If you open the box where the omega was in, you will find a URL who brings you to:
https://wiki.onion.io/Get-Started
If you connect as described (over the browser) you will get in to the control panel of the omega where you can configure it > Look for settings.
As I know it comes already configured for AP mode?!
Also, why aren't we running plain OpenWRT but this fork?
For me it looks like that the onioners forked the OpenWRT to preconfigure hardware and for branding.
A plain OpenWRT would be in my opinion a task for a hacker team (a group from the community) who reverse engineers it about the drivers and puts everything on GitHub as real open source ;).
From the onion Team itself you can not expect to much ... they are always busy promising new things where we have to wait to long for it ... an example was my simple question about the License model.
Until today now answer from the team.
Hello,
i have the same issue:
root@Omega-0417:~# opkg install pyOnionI2C
Unknown package 'pyOnionI2C'.
Collected errors:
opkg_install_cmd: Cannot install package pyOnionI2C.
root@Omega-0417:~#
root@Omega-0417:~# oupgrade
Device Firmware Version: 0.1.4 b330
Checking latest version online...
Repo Firmware Version: 0.1.4 b330
Comparing version numbers
Device firmware is up to date!
How to fix it? opkg update did not helped.
You would have to look at the datasheet.
It has 2 serial interfaces.
I assume one of the serial interfaces is for data transfer while the other is for control.
So, if you use serial to USB converters, you should be able to connect both to an USB hub and connect the hub to the onion.
@Alexander-Pitzer A docker image would be most convenient! But that's something the community could do, once the .config is known (plus maybe some stuff for /files).
Figuring out the right .config by reverse engineering however would be really tedious and completely redundant work, because that .config already does exist - only it's not available! So I still hope Onion will decide to publish it! Any chances for that, @Lazar-Demin?