| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Window Maker Live for Pin...
Forum: Linux on Pinebook Pro
Last Post: vajak
Today, 06:00 AM
» Replies: 2
» Views: 363
|
Rrkisp issue with CSI cam...
Forum: Linux on Quartz64
Last Post: lystar
Today, 02:34 AM
» Replies: 1
» Views: 3,698
|
bookworm vs trixie discus...
Forum: Mobian on PinePhone
Last Post: Kevin Kofler
Today, 12:11 AM
» Replies: 80
» Views: 45,493
|
Fedora + Phosh for PinePh...
Forum: PinePhone Software
Last Post: shanehill@mail.com
Yesterday, 09:12 PM
» Replies: 75
» Views: 200,566
|
Trixie - bring up the On ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
Yesterday, 04:34 AM
» Replies: 0
» Views: 57
|
On-Screen Keyboard Arrow ...
Forum: Mobian on PinePhone
Last Post: grump_fiddle_reinstall
Yesterday, 04:25 AM
» Replies: 11
» Views: 6,010
|
Armbian has been released...
Forum: News
Last Post: ArmbianForSBCs
Yesterday, 01:36 AM
» Replies: 21
» Views: 32,208
|
Alarm clock doesn’t work
Forum: Mobian on PinePhone
Last Post: biketool
Yesterday, 12:12 AM
» Replies: 14
» Views: 24,402
|
Diagnosing and fixing fai...
Forum: PinePhone Pro Software
Last Post: biketool
12-22-2025, 11:59 PM
» Replies: 7
» Views: 593
|
No phone call audio, logs...
Forum: PinePhone Pro Hardware
Last Post: biketool
12-22-2025, 05:09 PM
» Replies: 12
» Views: 816
|
|
|
| Node-RED |
|
Posted by: klliew - 10-15-2016, 08:55 AM - Forum: Pine A64 Projects, Ideas and Tutorials
- Replies (5)
|
 |
Node-RED is a tool for wiring together hardware devices, APIs and online services in new and interesting ways. It build on top of Nodejs
With this, PINE64 going to be more interesting.
Tested with PINE64 2GB(1GB and 512MB shall work well, anyone with this please help to test out), Debian Base(Others Debian built shall work well, some Debian only support Nodejs 4.x).
1) Install Nodejs
sudo su
cd /home/debian
mkdir src
cd
wget https://nodejs.org/dist/latest-v6.x/node...m64.tar.gz
tar -xvf node-v6.8.1-linux-arm64.tar.gz
cd node-v6.8.1-linux-arm64
sudo cp -R * /usr/local/
cd ..
rm -rf node-v6.8.1-linux-arm64
2) Install Node-Red
sudo npm cache clean
sudo npm install -g --unsafe-perm node-red
3) Boot time auto start
a) Create bash file for node-red service
sudo nano /lib/systemd/system/nodered.service
Code: # systemd service file to start Node-RED
[Unit]
Description=Node-RED graphical event wiring tool.
Wants=network.target
Documentation=http://nodered.org/docs/
[Service]
Type=simple
# Run as normal debian user - feel free to change...
User=debian
Group=debian
WorkingDirectory=/home/debian
Nice=5
Environment="NODE_OPTIONS=--max-old-space-size=128"
# uncomment and edit next line if you need an http proxy
#Environment="HTTP_PROXY=my.httpproxy.server.address"
# uncomment the next line for a more verbose log output
#Environment="NODE_RED_OPTIONS=-v"
#ExecStart=/usr/bin/env node $NODE_OPTIONS red.js $NODE_RED_OPTIONS
ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS
# Use SIGINT to stop
KillSignal=SIGINT
# Auto restart on crash
Restart=on-failure
# Tag things in the log
SyslogIdentifier=Node-RED
#StandardOutput=syslog
[Install]
WantedBy=multi-user.target
b) Create bash file to start node-red
sudo nano /usr/bin/node-red-start
Code: #!/bin/bash
echo -e '\033]2;'Node-RED console'\007'
nv=`node -v | cut -d "." -f1`
if [ "$nv" = "v0" ]; then
echo -e "\033[0;47m \033[0m"
echo -e "\033[0;47m node.js v0.10 is NO LONGER supported. \033[0m"
echo -e "\033[0;47m please consider upgrading to node.js LTS. \033[0m"
echo -e "\033[0;47m \033[0m"
echo -e "\033[0;47m you can do this with the following command: \033[0m"
echo -e "\033[0;47m update-nodejs-and-nodered \033[0m"
echo -e "\033[0;47m \033[0m"
echo -e " "
fi
HOSTIP=`hostname -I | cut -d ' ' -f 1`
if [ "$HOSTIP" = "" ]; then
HOSTIP="127.0.0.1"
fi
echo -e "Start \033[1m\033[38;5;88mNode-RED\033[0m"
echo " "
echo "Once Node-RED has started, point a browser at http://$HOSTIP:1880"
echo "On Pine64 Node-RED works better with the Firefox browser"
echo " "
echo -e "Use \033[0;36mnode-red-stop\033[0m to stop Node-RED"
echo -e "Use \033[0;36mnode-red-start\033[0m to start Node-RED again"
echo -e "Use \033[0;36mnode-red-log\033[0m to view the recent log output"
echo -e "Use \033[0;36msudo systemctl enable nodered.service\033[0m to autostart Node-RED at every boot"
echo -e "Use \033[0;36msudo systemctl disable nodered.service\033[0m to disable autostart on boot"
echo " "
echo "To find more nodes and example flows - go to http://flows.nodered.org"
if [ "$nv" = "v0" ]; then
echo "You may also need to install and upgrade npm"
echo -e " \033[0;36msudo apt-get install npm\033[0m"
echo -e " \033[0;36msudo npm i -g npm@2.x\033[0m"
fi
sudo service nodered start
echo " "
sudo journalctl -f -n 0 -u nodered -o cat
c) Create bash file to stop node-red
sudo nano /usr/bin/node-red-stop
Code: #!/bin/bash
echo -e '\033]2;'Node-RED console'\007'
echo -e "\033[1mStop \033[38;5;88mNode-RED\033[0m"
echo " "
echo -e "Use \033[0;36mnode-red-start\033[0m to start Node-RED again"
sudo service nodered stop
echo " "
exit
d) reload systemctl daemon
sudo systemctl daemon-reload
e) create auto start link
sudo systemctl enable nodered.service
4) Start Node-red without reboot
sudo systemctl start nodered.service
5) View node-red log:
sudo journalctl -f -u nodered -o cat
6) Configure node-red settings and install node
After first time start up, node-red will auto created a system folder at /home/debian/.node-red
To configure the setting, /home/debian/.node-red/settings.js
To install node, /home/debian/.node-red/node_modules
Default setting node-red will use PINE64 host name to generate flow file. /home/debian/.node-red/flows_pine64.json
If you will change host name, update the "flowFile" path in settings.js
a) to generate password protected
npm install -g node-red-admin
node-red-admin hash-pw
(Enter your password, it will return encoded password string, copy this string)
b) Famous Dashboard UI
npm install node-red-dashboard
c) Useful scheduler node
npm install node-red-contrib-bigtimer
There are thousand of node & flow at here.
after install new node, restart node-red.
sudo systemctl restart nodered.service
7) After all done, you will able to access node-red at browser (Default will use port 1880, can be update in settings.js)
http://[PINE64-IP-Address]:1880
8) Create a sample flow. You can import the this sample flow at Menu(Right Top Corner) -> Import -> Clipboard
Code: [{"id":"60ba3a72.b24c54","type":"ui_button","z":"5bd1466.b4e63b8","name":"","group":"7e934c94.882ef4","order":0,"width":0,"height":0,"label":"Click Me!","color":"","icon":"","payload":"","payloadType":"str","topic":"","x":188,"y":93,"wires":[["529c0ec4.837a7"]]},{"id":"529c0ec4.837a7","type":"function","z":"5bd1466.b4e63b8","name":"","func":"var d = new Date();\nmsg.payload = d;\nreturn msg;","outputs":1,"noerr":0,"x":326,"y":90,"wires":[["29ee44ea.ad52ec"]]},{"id":"29ee44ea.ad52ec","type":"ui_text","z":"5bd1466.b4e63b8","group":"7e934c94.882ef4","order":0,"width":0,"height":0,"name":"","label":"Current Date","format":"{{msg.payload}}","layout":"row-spread","x":542,"y":95,"wires":[]},{"id":"7e934c94.882ef4","type":"ui_group","z":"","name":"Hello PINE64","tab":"1680a81f.a5aec8","disp":true,"width":"6"},{"id":"1680a81f.a5aec8","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]
9) This sample flow using node-red-dashboard, you can access the UI at http://[PINE64-IP-Address]:1880/ui/#/0
Hope you guy enjoy this. Have fun!!!
|
|
|
|
| Guest Account in Android x-86 OS cannot Access Internet |
|
Posted by: deniyulianti - 10-15-2016, 07:30 AM - Forum: Android on Pine A64(+)
- No Replies
|
 |
I have a problem with my account. When I used my administrator account, I can access internet for my android applications, such as LINE, Viber and so on and web browser (Chrome).
But when I changed to be a guest account in Android x-86 OS, I cannot get any internet connectivity. I installed Android x-886 5.1 (Lollipop) OS on VM-ware.
Please help me out. Thanks.
|
|
|
|
| I can get Internet Access, Though I cannot Use Instant Messagings (LINE, Zalo, Viber) |
|
Posted by: deniyulianti - 10-15-2016, 07:29 AM - Forum: Android on Pine A64(+)
- No Replies
|
 |
I have a problem regarding the internet connection to my android applications, e.g. Instagram, LINE, Viber, etc.
I use Android x-86 version 5.1 (Lollipop) on Vm-ware.
Actually, I have internet connectivity, I can access internet via web browser. Though I cannot use my android application that I mentioned above.
How to solve that problem. Please help me out. Thanks in advance.
|
|
|
|
| I can get Internet Connection, However I cannot download APK File (Kitkat and Lollipo |
|
Posted by: deniyulianti - 10-15-2016, 07:28 AM - Forum: Android on Pine A64(+)
- No Replies
|
 |
I have problem related on internet connection in Android x-86 version 5.1 (Lollipop) and version 4.4 (Kitkat). I run that android emulators on VM-ware.
I use android-x86-4.4-r5.iso for Kitkat and android-x86-5.1-rc.iso for Lollipop.
I have internet connectivity and I can use web browser for both android emulators, but I cannot download the APK files.
The status of the APK files at Download Folder always show Queued status and I waited for so long but there was no any APK file at that folder (Download folder), or there is no any response.
Please help me out. Thanks in advance.
|
|
|
|
| Guest Account in Remix OS cannot Get Internet Connection |
|
Posted by: deniyulianti - 10-15-2016, 07:13 AM - Forum: Remix OS
- Replies (1)
|
 |
I have a problem, using my administrator account, I can access internet both my android applications, such as LINE, Viber and so on and web browser (Chrome).
But when I change to be a guest account in Remix OS, I cannot get any internet connectivity. I installed Remix OS on VM-ware.
I use Android version 6.0.1 and Remix OS version 3.0.205.
Please help me out. Thanks.
|
|
|
|
| Guest Account in Remix OS cannot Get Internet Connection |
|
Posted by: deniyulianti - 10-15-2016, 06:32 AM - Forum: Android on Pine A64(+)
- No Replies
|
 |
I have a problem, using my administrator account, I can access internet both my android applications, such as LINE, Viber and so on and web browser (Chrome).
But when I change to be a guest account in Remix OS, I cannot get any internet connectivity. I installed Remix OS on VM-ware.
I use Android version 6.0.1 and Remix OS version 3.0.205.
Please help me out. Thanks.
|
|
|
|
| Hardware acceleration |
|
Posted by: hamzahbondok - 10-14-2016, 04:48 PM - Forum: Linux on Pine A64(+)
- Replies (8)
|
 |
hello everybody. Today I finally managed to boot up my pine 64 but kodi was very laggy. I looked around on the forum and found that there was missing hardware acceleration. So my question is:
- is there working hardware acceleration
- is there an image of linux with hardware acceleration
also I dont want to use android to use kodi as I had other things I want to do with linux so if there is not I just wasted my money.
thanks and sorry for bad english
|
|
|
|
| Pine64 / V 13x Serial Port wrong permissions /ttyUSB0 |
|
Posted by: maxtox - 10-14-2016, 12:20 PM - Forum: Debian
- Replies (1)
|
 |
Hi,
i am using dietPi with Pine 64 and Raspi 2B.
Arduino is connected to raspi /Pine 64 and write/receive data.
Problem i have is, that everything is fine with Raspi, but Pine does have 660 permission.
If i change it to 666 and use it as root, it starting to work for couple seconds and i get Error serial port ttyUSB0 is not open, unable to write.!
when i install debian ->standard image, serial is it starting to work fine..
BUT
I Love DietPi!!!! I want to use it as Image for this open source Home automation Project = ioBROKER (iobroker.net) , which can be used for everything (sonos, mysesnsors, hue etc..)
Could you HELP PLEASE
|
|
|
|
|