A 2.2G compressed copy of the 8G micro SD card I've been using, complete with prefilled-logfiles, etc, can be downloaded by going to the github repository below copying the link. Just doing that in case robots were to attempt to download directly from this post.
https://github.com/NetDispenser/creditmeterimages/blob/master/linkThe compressed img was created via the following command:
sudo dd if=/dev/mmcblk0 | gzip > ~/nd032618.img
Expand it onto an 8G micro SD card via the following command:
gzip -dc ~/nd032618.img | dd of= /dev/mmcblk0
/dev/mmcblk0 is how the SD card shows up on my Linux box, you may need to change things to match your system. The "dd" command is also available on Mac computers, as they are Linux underneath the UI.
Here are quick install instructions:
1. download the compressed image from above link
2. expand onto 8G micro SD
3. insert micro SD into Raspberry-Pi 3 with Edimax nano antenna
4. power-up your Raspberry-Pi (The pi3 needs a 1.2Amp supply ... more than previous pi's)
5. the R-Pi will broadcast a HotSpot with the SSID of "rpi3" ... connect and ssh into it: ssh
p...@192.168.1.16. username=pi password=raspberry
7. you will have ssh'd in through the Edimax antenna interface. There is an onboard bcom wifi, as well, but now you need to configure it through wpa_supplicant
8. cd /etc/wpa_supplicant and edit wpa_supplicant.conf with your upstream wifi connection info. It currently has my wifi info ... replace with yours
9. easiest thing is to get the new wifi up and running is just reboot. shutdown -h now; power off/on; ssh into it again and verify with ifconfig and iptables -S
10. now you should have both interfaces up and talking (wlan0, wlan1) but if you connect anything to it you will be firewalled-in until you run the credit-meter.
11. point a browser at 192.168.1.1 and login by clicking the Child login (no password in Demo mode)
12. transfer some credits via the button (this is DEMO mode so endless credit transfer from internal django function)
13. start the credit-meter by pushing the start button ... leds should blink and you should now have internet access (connected device only) as long as meter is running
14. you can connect arbitrary number of devices, but in DEMO mode each device will need to run a credit-meter instance in a browser. it uses web-workers so keeps running when using different tabs.
15. to see the firewall configuration issue command: iptables -S and you should see the mac address of your connected device(s). my laptop's mac is hard-coded in there, too; i will remove next time.
16. that is enough to demo the platform. i'll post more about the specific files that have the DEMO flag set, so that by unsetting and rebooting it becomes connected to the Credit-Feeder website.
-Charlie