Recent Posts

Pages: [1] 2 3 ... 10
1
General Discussion / HTML Code to refresh Iframe every 5 seconds
« Last post by branx86 on February 16, 2019, 08:43:59 PM »


<script type="text/javascript">
   setInterval(refreshIframe, 5000);
   function refreshIframe() {
       var frame = document.getElementById("Frame");
       frame.src = frame.src;
   }
</script>

<iframe id="Frame" src="http://www.aspforums.net" frameborder="0"></iframe>

2
Linux Fixes / Xibo install
« Last post by branx86 on December 31, 2018, 03:34:49 PM »
st finished the install. Hope can save someone’s time. Please fell free to modify, amend and comment.

Avoid using Chrome on install, it has strange problem.

Install CentOS minimum. I use CentOS-7.2.1511-x86_64 then update.

Install net-tools and editor if not using vi.
Disable /etc/sysconfig/selinux

sudo yum -y install httpd
sudo systemctl enable httpd
sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
sudo firewall-cmd --reload

yum install -y epel-release
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 102

PHP 5.6
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 77

The following work for me.
yum install -y php56w php56w-opcache php56w-common
yum install -y php56w-pear php56w-devlop.x86_64
yum install -y php56w-devel php56w-intl php56w-soap php56w-mcrypt json
yum install -y php56w-pdo php56w-gd
yum install -y php56w-mysql
yum install -y php56w-mbstring

Install MariaDB
yum -y install mariadb-server
systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation

Prepare compile zeromq
yum -y group install “Development Tools”

Download zeromq.
tar zxvf zeromq-4.2.0.tar.gz
./configure
make
make install
pecl install zmq-beta
edit /etc/php.ini and add extension=zmq.so 110

Extract cms to /var/www/xibo18.
Edit /etc/httpd/conf/httpd.conf change
DocumentRoot “/var/www/xibo18/web”
<Directory “/var/www/xibo18/web”>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
Require all granted

chown -R apache:apache /var/www/xibo18

XMR
/var/www/xibo18/vendor/bin/config.json
{
“listenOn”: “tcp://IP_ADDR:50001”,
“pubOn”: [“tcp://IP_ADDR:9505”],
“debug”: false
}

XTR
EDITOR=joe crontab -e
’* * * * * /usr/bin/php /var/www/xibo18/bin/xtr.php’

Edit /etc/php.ini
max_execution_time = 120
memory_limit = 256M
post_max_size = 256M
upload_max_filesize = 256M
extension=zmq.so 110
date.timezone = TIME_ZONE

systemctl restart httpd

http://IP_ADDR

Enjoy.
3
Raspberry Pi / Upgrade raspberry Pi Distro
« Last post by branx86 on December 14, 2018, 08:44:36 PM »
1 sudo apt update

2 sudo apt dist-upgrade

3 sudo apt clean

4 sudo reboot

5. Done
4
Raspberry Pi / Show Boot text on bootup
« Last post by branx86 on December 14, 2018, 08:01:11 PM »
Just edit the /boot/cmdline.txt file, and remove the quiet directive.

# cat /boot/cmdline.txt
#dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=xxxxxxxx-yy rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles

cp /boot/cmdline.txt ~/boot_cmdline_bak.txt
sudo nano /boot/cmdline.txt
5
Windows Fixes / gpresult to find out all the members Of
« Last post by branx86 on December 03, 2018, 09:44:04 AM »
gpresult/Z     to find out all the members Of  in AD
6
General Discussion / Knock Apart Utility Table
« Last post by branx86 on November 15, 2018, 03:29:05 PM »







This table is made from a full sheet of 5/8-in. plywood for the interlocking base stand and a sheet of 3/4-in. plywood for the work surface and shelves. You’ll also need four 10-ft. lengths of 1×3 pine for the edge banding and cleats.

Cut two 30-in. high by 48-in. long pieces from the 5/8-in. plywood for the base pieces. Then cut a slightly oversize 5/8-in. wide slot in the bottom half of one base and in the top half of the other. Make both slots about 15-1/2 in. long. Assemble the base and position the top so the corners are aligned with the legs. Screw loose fitting 12-in. long 1x3s along each side of each leg to hold everything stable.

The table is much more stable if you use the 3/4-in. waste from the top to make triangular braces (which also act as shelves) with 20-in. long sides. Using 1-1/4 in. drywall screws, attach 1x2s to the base about 12 in. up from the floor and screw the shelves down.


7
General Discussion / Cheap OSB WorkBench
« Last post by branx86 on November 13, 2018, 08:26:37 AM »
Made from four 8'  2x4's
One 2x4,about6' long
Two large OSB  7/16"Thick 3"Deck Screws  1-5/8"Deck Screws
8
Arduino / Arduino - Web-Based Joystick
« Last post by branx86 on November 01, 2018, 09:12:27 AM »
https://create.arduino.cc/projecthub/iot_lover/arduino-web-based-joystick-02ca54?ref=platform&ref_id=424_trending___&offset=339

Components and supplies
1 - Arduino UNO or  Genuino UNO
1- WiFi Shield for Arduino
2- Servo Motors

Wiring

    Stack PHPoC WiFi shield or PHPoC Shield on Arduino

    Connect pin GND and VCC of two servo motors to GND and 5V of Arduino, respectively. (pin IOREF of arduino can be used like 5V pin)

    Connect pin signals of two servo motors to pin 8 and pin 9 of Arduino, respectively.

What We Need to Do

    Set Wifi information for PHPoC shield (SSID and password)

    Upload new UI to PHPoC shield

    Write Arduino code

Setting Wifi Information for PHPoC Shield

See this instruction. http://www.phpoc.com/support/manual/p4s-347_user_manual/contents.php?id=network_first_setup

Upload new Web UI to PHPoC Shield

    Download PHPoC source code remote_joystick.php (on code section).

    Upload it to PHPoC shield using PHPoC debugger  http://www.phpoc.com/common/download/software/PHPoCD.zip    according to this instructionhttp://www.phpoc.com/support/manual/phpoc_debugger_manual/contents.php?id=major_upload.

Write Arduino Code

    Install PHPoC library for Arduino on Arduino IDE (see the instruction ) http://www.phpoc.com/support/manual/p4s-347_user_manual/contents.php?id=library_setup

    See source code in code section.


Try it

    Click serial button on Arduino IDE to see the IP address.

    Open web browser, type http:// replace_ip_address/remote_joystick.php

    Click connect button and test it.




Pages: [1] 2 3 ... 10