X-C1 Software

From Geekworm Wiki
Jump to navigation Jump to search


[Update]

Support Umbrel now.

The script is not tested VMware ESXI ARM operating system. To make the 3pin PWM cooling fan running, please remove/pull out the yellow cable.

NOTE:

In general, two important libraries are needed to run this script:

1. pigpiod, refer to http://abyz.me.uk/rpi/pigpio/download.html

2. Python, try to run 'python --version' to check it.

For Raspbian / RetroPie / Twister OS v2.0.2

Test this script based on the following OS:

  • Raspbian 2021-05-07-raspios-buster-armhf, 2021-10-30-raspios-bullseye-armhf.img, 2021-10-30-raspios-bullseye-armhf-lite.img
  • RetroPie 4.7.1
  • Twister OS v2.0.2.

install

cd ~
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git pigpio 
sudo apt-get install -y python-pigpio python3-pigpio
sudo apt-get install -y python-smbus python3-smbus
git clone https://github.com/geekworm-com/x-c1.git
cd x-c1
sudo chmod +x *.sh
sudo bash install.sh
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall.sh

For ubuntu mate / ubuntun desktop / ubuntu server

Test this script based on the following OS:

  • ubuntu-mate-20.04.1-desktop
  • ubuntu server 21.04
  • ubuntu-21.04-preinstalled-desktop-arm64+raspi

install

cd ~
sudo apt-get update
sudo apt-get upgrade

sudo apt-get install -y unzip make gcc python git wiringpi python3-pigpio python-setuptools
sudo apt-get install -y python3-distutils

#install pigpio library, also refer to http://abyz.me.uk/rpi/pigpio/download.html
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
sudo make
sudo make install

cd ~
git clone https://github.com/geekworm-com/x-c1
cd x-c1
sudo chmod +x *.sh
sudo bash install-ubuntu.sh

echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch 1-2 seconds to reboot
  • press button switch 3 seconds to safe shutdown,
  • press 7-8 seconds to force shutdown.

uninstall

sudo ./uninstall-ubuntu.sh

For myNode OS and Umbrel

About myNode, please refer to http://www.mynodebtc.com/

About Umbrel, please refetrto https://getumbrel.com/

Install

Login to mynode teminal via Putty or Xsheel tool, the default user name is `admin`, default password is `bolt`, then run the following command:

Login to mynode teminal via Putty or Xsheel tool, the default user name is `umbrel`, default password is `moneyprintergobrrr`, then run the following command:

FAQ

Q: What are the credentials to SSH into my Umbrel?

A: ssh umbrel@umbrel.local (or ssh umbrel@<IP address of your Umbrel>). The password is the same as your Umbrel's password. If you haven't set a password yet, the default password is: moneyprintergobrrr.

 sudo apt-get update
 sudo apt-get install pigpio python-pigpio python-smbus wiringpi -y
 git clone https://github.com/geekworm-com/x-c1
 cd x-c1
 chmod +x *.sh
 sudo bash install-mynode.sh
 echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc

 sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch 1-2 seconds to reboot
  • press button switch 3 seconds to safe shutdown,
  • press 7-8 seconds to force shutdown.

uninstall

./uninstall-mynode.sh

For DietPi

Install

Test it base DietPi_RPi-ARMv8-Buster.img

login via teminal window, the default user name is `root`, password is `dietpi`, then run the following command:

 sudo apt-get update
 sudo apt-get install git pigpio python python-pigpio python-smbus wiringpi -y
 git clone https://github.com/geekworm-com/x-c1
 cd x-c1
 chmod +x *.sh

 sudo bash install-dietPi.sh

 echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
 sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall-dietPi.sh

For Manjaro

About Manjaro, please refer to https://manjaro.org/

Test this script based on Manjaro-ARM-kde-plasma-rpi4-21.07.img

install

cd ~
sudo pacman -Syyu
sudo pacman -S unzip make gcc python python-setuptools git

#install pigpio library, also refer to http://abyz.me.uk/rpi/pigpio/download.html
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
cd pigpio-master
sudo make
sudo make install
sudo cp /usr/local/lib/libpigpio* /usr/lib/

#install wiringpi
git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi
./build

cd ~
git clone https://github.com/geekworm-com/x-c1
cd x-c1
sudo chmod +x *.sh
sudo bash install-manjaro.sh

#create a alias xoff
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall-ubuntu.sh

For LibreELEC

With LibreELEC it is not possible to change the system for security and stability reasons so even 'apt-get' would not be able to do this, so we cannot install some third-party libraries like pigpiod, Therefore, safe shutdown and dynamic adjustment of fan speed cannot be supported on liberelec.

Please pull out the yellow wire of the fan to make the fan run immediately

return to NASPi

For Volumio

Test this script based on the following OS:

  • Volumio-3.175-2021-12-13-pi.img

install

cd ~
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git pigpio 
sudo apt-get install -y python-pigpio python3-pigpio
sudo apt-get install -y python-smbus python3-smbus
git clone https://github.com/geekworm-com/x-c1.git
cd x-c1
sudo chmod +x *.sh
sudo bash volumio.sh
echo "alias xoff='sudo /usr/local/bin/x-c1-softsd.sh'" >> ~/.bashrc
sudo reboot

PWM fan control

The script is installed successfully and the fan starts to run

Test safe shutdown

xoff
  • Please run 'xoff' to shut down or press the on-board button switch to shut down. DON'T run the 'shutdown' linux command to shut down, otherwise the power of X-C1 will not be shut down.
  • press button switch `1-2` seconds to reboot
  • press button switch `3` seconds to safe shutdown,
  • press `7-8` seconds to force shutdown.

uninstall

sudo ./uninstall.sh

Note

Enable SSH:
http://volumio.local/dev/
Name: volumio
Password: volumio

we use the default password to run the volumio.sh, please replace default password 'volumio' with your new password in volumio.sh file .(Line 72)

FAQ

Q1: Can't connect to pigpio at localhost(8888)

Can't connect to pigpio at localhost(8888)
Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
  File "/home/volumio/x-c1/fan.py", line 8, in <module>
    pwm.set_mode(servo, pigpio.OUTPUT)
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1376, in set_mode
    return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
  File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1025, in _pigpio_command
    sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'

A: If you find an error similar to the above, it is because pigpiod library is not started, we need to run pigpiod first,

sudo pigpiod
python 'your directory'/x-c1/fan.py &

If 'sudo' command request a password, you can use the following command:

echo 'your password' | sudo -S pigpiod
python 'your directory'/x-c1/fan.py &

You can put these two lines in the /etc/rc.local file so that it will run automatically after booting.

Volumio-rc-local.jpg



Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.


Anonymous user #34

5 days ago
Score 0++

I tried doing this with Raspberry Pi OS and it didn't work. I did use the one at the top that says Raspbian. I forgot it isn't called Raspbian any more so maybe that was why? I cut and pasted the instructions to avoid errors. Being a bit of a noob, I might have got the bit that sends you to github wrong. I just copy and pasted the line as above. Don't know if I was meant to go to github and do something? Anyway, followed it through. Did reboot as stated. It seemed to reboot but I lost display. I could see that it was connected to internet the first couple of times. Then after that, it would start to load up. (I could see that bit) then it got to a point and i lost display. It didn't show up as connected to internet either and i cpu light stopped flashing. Left it ages a couple of times.

Gave up, had to start again from fresh, reinstalled Raspberry Pi OS.

Anonymous user #33

one month ago
Score 0++

Your ubuntu install script just hard overwrites rc.local without checking if there's anything there alread and doesn't back it up

this is really poor practice you're not the only folks who might want to use rc.local on ubuntu... please consider more "defensive programming"

Anonymous user #32

one month ago
Score 0++
Hi. Any update on Home Assistant support?

Lisa

4 days ago
Score 0++
Hi,Sorry, it is not supported yet

Anonymous user #31

one month ago
Score 0++

OS: 2021-10-30-raspbian-bullseye-armhf lite version

Your script doesn't work. After using the xoff command the system turns off, but using the button the fan starts at maximum and the red led does not turn off. Also I point out that it is impossible to install python-smbus as it reports me that the package is missing. The script has been tested on at least 5 raspberry with your case but none seem to work. I would also like an implementation of a custom path for the installation of the script, as it seems to me that your product was not given to me but was purchased.

Lisa

one month ago
Score 0++
Hello,If the system is turned off, the indicator light should not light up. But based on what you said, we cannot tell what the problem is.Could you please provide some installation and test pictures,

Anonymous user #30

one month ago
Score 0++
Hello.I am using raspbian lite arm64 on RPI 4 8Gb, the fan is working, but when I turn off by switch (3s) it looks like is turnung off but the red light on RPI4 and the blue light on the switch stays on, is compatible with ARM64 OS?

Lisa

one month ago
Score 0++
Hi,If it is turned off, the LED indicator should be off. Could you please send some pictures by email ?[support@geekworm.com],and please let us know your Order NO. Thanks

Anonymous user #28

2 months ago
Score 0++
Hi. Amy update on a possible Home Assistant support?

Anonymous user #29

one month ago
Score 0++

Hi, @user#28: Did you try the Unbuntu scripts proposed here in this Wiki on your Home Assistant PI? Was this not working?

I just bought this board also. I am setting up this board fright now, and was looking at this WiKi to now implement the Temperature monitoring on this XC-1 board to have the fan monitor the temperature.

I think this board is perfekt for any Smarthome solution based on Raspberry PI ...

Anonymous user #27

2 months ago
Score 0++

Hello,

I am trying to use the on the new Raspberry Pi 4 with Pop Os as my system. Pop Os is based on Ubuntu but I can't get the install script to work I get error line 121. Could you tell me how to fix this. Thanks for any help on this.

Lisa

2 months ago
Score 0++

Hello,please send us 【Pop Os】link and let us try to test.

Because there are too many operating systems for the Raspberry Pi, we cannot provide installation scripts for all systems, so we strongly recommend buying the NASPi Lite version if you are using a third-party system.

Anonymous user #25

2 months ago
Score 0++

Could you update the script for 2021-10-30-raspios-bullseye-armhf? The actual script isn't working with that OS.

I'm getting this error with "sudo apt-get install -y pigpio python-pigpio python-smbus python3-pigpio wiringpi git" command:

"Package python-smbus is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python-smbus' has no installation candidate E: Unable to locate package wiringpi"

I'm using the lite version.

Lisa

2 months ago
Score 0++
Hi,Are you using the NASPi Lite case fo Raspberry Pi4? NASPi Lite does not need to install script, it uses X-C2 adapter board, not X-C1. please refer NASPi Lite

Anonymous user #26

2 months ago
Score 0++

No, the lite version of the raspberry OS.

I have the standard NASPi 2.5.

Lisa

2 months ago
Score 0++
Hi,Please ignore the above the warning...We tested again and there was no problem with the installation, please try to install it again.

Anonymous user #17

2 months ago
Score 0++
With Bullseye, one might also want to install (with apt) the package python-is-python3 that creates a symlink from "python" to "python3" - some scripts seem to refer to python only causing "command not found" problems.

Anonymous user #24

2 months ago
Score 0++

For future generations looking for software night mode indication: power button's LED is powered by 1.83 mA at 2.57 V, so you need a 400 ohm resistor to drive it directly from the 3.3V raspberry pin.

Pin, marked in FAQ (linked below) is GND, the one to be cut off (and point to connect from gpio) is right above it.

Anonymous user #24

2 months ago
Score 0++
Is there any chance to dim power button's LED in code? Please don't suggest using duct tape :)

Lisa

2 months ago
Score 0++
Hi,Sorry, the brightness of the LED indicator does not support adjustment

Anonymous user #24

2 months ago
Score 0++

Hi, and thank you for your answer.

Then could it be disabled programatically?

Anonymous user #24

2 months ago
Score 0++
..or, if it's impossible to turn off led, is is possible to disable entire button?

Lisa

2 months ago
Score 0++
LED is controlled by MCU. We cannot disable the LED programmatically. But you can refer to the method here NASPi#FAQ

Anonymous user #24

2 months ago
Score 0++
OK, then could you please tell me operating current and voltage of this LED? If it can be safely cut off, then it can be controlled by another GPIO pin after that.

Anonymous user #23

2 months ago
Score 0++
+1 for Home-Assistant integration. This would be really great!

Anonymous user #8

2 months ago
Score 0++

dont work for dietpi anymore... apt-get install git pigpio python python-pigpio python-smbus wiringpi -y Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'python-is-python2' instead of 'python' Package python-smbus is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or

is only available from another source

Anonymous user #21

3 months ago
Score 0++
The fan is very noisy, and seems to run full-speed all the time - is this expected behaviour, or can the speed be controlled?

Lisa

3 months ago
Score 0++
Hello,It is a PWM fan, you can adjust the speed of the fan.

Anonymous user #22

3 months ago
Score 0++
Another vote for HassOS support of xoff and Fan control please in Hass iuntegration

Anonymous user #21

3 months ago
Score 0++
I've just installed, and after a number of false starts, now have it running with the fan on. However, xoff doesn't do anything.

Anonymous user #21

3 months ago
Score 0++
Same here

Lisa

3 months ago
Score 0++
Hi,could you please check if the script is installed correctly and what operating system you are using. Please tell us more information, install pictures and videos.thanks

Anonymous user #20

3 months ago
Score 0++

Hello Another vote for HomeAssistant integration, please!

Thanks for a great, well-made product.

Lisa

3 months ago
Score 0++
Hi,Thanks for your feedback. Because there are too many operating systems, we designed NASPi Lite,and we recommend using the NASPi lite version if it is not an official system, functions and operations are simpler.

Anonymous user #17

3 months ago
Score 0++

Is it possible to have the X-C1 start up on it's own after a power failure?

Mine works without issues otherwise (PWM etc OK), but does not power on automatically (without user manually pressing the power button) after power is restored from the wall (USB-C).

Lisa

3 months ago
Score 0++
sorry the X-C1 not have 'AUTO ON' function

Anonymous user #16

3 months ago
Score 0++
Can you consider to add Home Assistant OS support for both fan and safe reboot scripts?

Lisa

3 months ago
Score 0++
Hi,We will consider it, but the mirror was not downloaded. yet.

Lisa

3 months ago
Score 0++
you can remove the yellow wire of the fan, do not use the PWM function and use the fan directly without installing a script.

Anonymous user #18

3 months ago
Score 0++

I'm using Home Assistant configuration for Fan, based on cpu_temp but I'm not able to set fan rpm. I think there is no possibility for safe shutdown instead. I will wait any update for HomeAssistant OS.

Thanks

Anonymous user #15

3 months ago
Score 0++

Sorry, I can't install X-C1 software on Raspberry Pi4 with Raspberry Pi OS (32 bit). This whole guide refers to other software, how should I go about using the power button features and running the fan for pleasure?

Thanks.

Lisa

3 months ago
Score 0++
Hi,could you please tell us the specific problem? You can refer to the operation guide of Raspbian

Anonymous user #14

4 months ago
Score 0++

X-C1 kit is a raspberry pi 4 case, but scipt using wiringpi gpio. WiringPi was deprecated by its maintainer over a year ago. The 2.52 release doesn't fully work on Pi-4. IIRC there were several important functions that had breakage and the maintainer had already deprecated the project.

So the X-C1 script will never work properly on the PI-4.

Abby

2 months ago
Score 0++

Hi, Wiringpi gpio is in the script, but actually we didn't use it. To avoid misunderstanding, next we will remove the content related to wiringpi gpio.

We have sold a lot of NASPi, and the every scripts on the X-C1 page have been tested by us, so it did work on pi 4.

Regards,

Anonymous user #14

4 months ago
Score 0++

Moode 7.3 fresh installation, X-C1 scipt installed, button working but fan always spin, no PWM control. Xoff command working but shutdown from moode console does not shuttdown the case.

OSMC fresh installation, script installation problem, wiringpi can't install, button working but no fan control. Please help.

Anonymous user #13

4 months ago
Score 0++
this is not making sense. I install the script and for some reason, it reboots randomly with the power button flashing. And the fan will not start. It works fine until I install the script, then it craps itself every time. Can I get a fix or I will be returning this device?

Anonymous user #13

4 months ago
Score 0++
Im running a rpi 4 4gig model with rasberry pi OS (Raspbian)

Lisa

4 months ago
Score 0++
Hi,could you please send some pictures by email ?[support@geekworm.com],and please let us know your Order NO. Thanks

Anonymous user #13

4 months ago
Score 0++
what do you need pictures of? the issue? or that I actually have what I am claiming to have?

Anonymous user #13

4 months ago
Score 0++
email sent

Lisa

4 months ago
Score 0++
OK,We replied to your email.

Anonymous user #11

5 months ago
Score 0++

I have the script installed on a Raspbian Lite headless server. I added the crontab job as detailed below, but the fan doesn't come on when the machine is booted. I tried to test the script by running it directly with:

python /home/pi/x-c1/fan.py

however I get the error:

Did you start the pigpiod daemon?

I am only able to get the python script running if I manually kill the pigpiod daemon and restart it.

How can I fix this? Its annoying to have to remember to kill the daemon, restart it, and then manually start the script each time I reboot my server.

Harry

5 months ago
Score 0++

Hi, Please run pigpiod service; sudo systemctl enable pigpiod or

sudo pigpiod

Anonymous user #11

4 months ago
Score 0++

This did not help. The output of sudo systemctl shows pigpiod service enabled and running on boot, but the fan doesn't run.

The only way to get the fan running is to kill the pigpiod process, restart it with sudo pigpiod and then manually run the fan script.

Anonymous user #19

3 months ago
Score 0++

Regarding "Can't connect to pigpiod", if you have to kill and restart pigpiod then it seems to be due to the address binding.

Following this suggestion to setup newer Pi4 to not use ipv6: Github joan2937/pigpio/issues/195#issuecomment-449774632

Edit /lib/systemd/system/pigpiod.service

[Service]

ExecStart=/usr/bin/pigpiod -l -n 127.0.0.1

Anonymous user #9

6 months ago
Score 0++

Hi, Sorry if this problem I am having is completely on me but I am very new to all of this. I am trying to setup a home Plex server and I bought this case and a 240 GB SSD to Plex Media Server and I plan to use a 12 TB external hard drive. I assembled the case and transferred the OS, I am using Ubuntu 21.04, to the SSD. I am attempting to get the fan to work and I can't seem to have any success with the commands in terminal. Here is where I seem to be having trouble:

          • @****:~/pigpio-master$ make

make: Nothing to be done for 'all'.

          • @****:~/pigpio-master$ sudo make install

install -m 0755 -d /opt/pigpio/cgi install -m 0755 -d /usr/local/include install -m 0644 pigpio.h /usr/local/include install -m 0644 pigpiod_if.h /usr/local/include install -m 0644 pigpiod_if2.h /usr/local/include install -m 0755 -d /usr/local/lib install -m 0755 libpigpio.so.1 /usr/local/lib install -m 0755 libpigpiod_if.so.1 /usr/local/lib install -m 0755 libpigpiod_if2.so.1 /usr/local/lib cd /usr/local/lib && ln -fs libpigpio.so.1 libpigpio.so cd /usr/local/lib && ln -fs libpigpiod_if.so.1 libpigpiod_if.so cd /usr/local/lib && ln -fs libpigpiod_if2.so.1 libpigpiod_if2.so install -m 0755 -d /usr/local/bin install -m 0755 pig2vcd /usr/local/bin install -m 0755 pigpiod /usr/local/bin install -m 0755 pigs /usr/local/bin if which python2; then python2 setup.py install ; fi /usr/bin/python2 running install running build running build_py running install_lib running install_egg_info Removing /usr/local/lib/python2.7/dist-packages/pigpio-1.78.egg-info Writing /usr/local/lib/python2.7/dist-packages/pigpio-1.78.egg-info if which python3; then python3 setup.py install ; fi /usr/bin/python3 Traceback (most recent call last): File "/home/pajc810/pigpio-master/setup.py", line 3, in <module> from distutils.core import setup ModuleNotFoundError: No module named 'distutils.core' make: *** [Makefile:107: install] Error 1

Like I said earlier if this is on me and it just won't work with this OS then I am sorry for wasting your time I just don't know what I need to do to get this fixed. Thanks.

Anonymous user #10

6 months ago
Score 0++

hi, I tested it on ubutun mate 20.04 version, and it's ok, and we update the shell script on 24th. July.

or you can email to us: info@geekworm.com

Harry

Harry

5 months ago
Score 0++
You don'e install 'make', 'gcc' tools. please check the above steps.

Anonymous user #6

6 months ago
Score 1++

Issue on Ubuntu 64 Bit

~/pigpio-master$ sudo apt install -y python-pigpio python3-pigpio python-setuptools Reading package lists... Done Building dependency tree... Done Reading state information... Done

E: Unable to locate package python-pigpio

Anonymous user #7

6 months ago
Score 0++
please email to me harry@geekworm.com

Harry

6 months ago
Score 0++
Please ignore this message

Anonymous user #4

6 months ago
Score 0++

Doesn't seem to want to work with 64-bit Rasp

Can't connect to pigpio at soft(8888)

Did you start the pigpio daemon? E.g. sudo pigpiod

Did you specify the correct Pi host/port in the environment variables PIGPIO_ADDR/PIGPIO_PORT? E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888

Did you specify the correct Pi host/port in the pigpio.pi() function? E.g. pigpio.pi('soft', 8888) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Traceback (most recent call last): File "/home/pi/x-c1/fan.py", line 8, in <module> pwm.set_mode(servo, pigpio.OUTPUT) File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1376, in set_mode return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode)) File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1025, in _pigpio_command sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))

AttributeError: 'NoneType' object has no attribute 'send'

Lisa

6 months ago
Score 0++
Hello, Could you please send some test pictures to us for reference by email? and you will get help faster. Please mark your order number.Thanks! support@geekworm.com

Harry

6 months ago
Score 0++
Hi, sudo apt-get upgrade is important.

Anonymous user #8

6 months ago
Score 0++
Hi, same problem. Scipt doesn't work. Best wishes.

Lisa

6 months ago
Score 0++
@Anonymous user #8:Hello,After our test, it is no problem and can work very well. Could you please email us your operation process and let our engineers take a look?【support@geekworm.com】(Please tell us the operating system you are used and order number).THANKS~

Anonymous user #12

5 months ago
Score 0++
Hi, same problem. Scipt doesn't work. Best wishes.

Anonymous user #3

6 months ago
Score 0++
Will there be a Manjaro ARM version of the script?

Lisa

6 months ago
Score 0++
Hello, There is no corresponding script yet, we need to test it on Manjaro ARM.If there is a test result, we will publish it on the wiki immediately

Anonymous user #5

6 months ago
Score 0++
Please update and include compatibilty to operate cooling fan for Manjaro ARM

Harry

6 months ago
Score 0++
Hi, Manjaro is supported now.

Anonymous user #2

6 months ago
Score 0++

Hi,

I'm using this case for my PI4 with Home Assistant OS 6.1, can you help with integrating this software in it?

Abby

6 months ago
Score 0++

Hi, Pls kindly provide the software url, I will try to give feedback to our engineers.

Regards,

Abby / Geekworm

Anonymous user #1

6 months ago
Score 0++

For Raspberry Pi-4 please add the fan control to the OS start-up not the user start-up, otherwise when used for a headless server the fan never comes on. Thanks for an awesome product.

Also the text foe Test Safe Shutdown for Raspian section is not formatted correctly.

Harry

6 months ago
Score 0++
Thanks for your feedback. the fan control script can be added to crontab job to solve this question, please refer to How to add crontab job