This is my solar powered setup. A somewhat old Pixel 6a that fell from a foot and a half (really!?), a 10w Solar setup that was around 20$ on amazon. And an old compost container I have too many of. Ill be giving it a proper 3d printed case when I get a chance (and a host of other changes) but for now this works! Its worth about 40$ in total (the phone is now worth about 21$ on the open market).

Qm4kpb3x0dQ7Qib.jpg

hRMBBvZMfVgbgIs.jpg

Website: https://solar.chrisco.me/

Website was made with a collection of scripts, apache2 (nginx for some reason did not install, errors), and termux. Ill open source the whole setup in a bit. Theres not much to it to be honest.

Hopefully keeping the battery at 80% will help the lifetime of the battery. I may bump it up at some point if it keeps dieing because lack of sunlight. But we shall see.

More info in the link. I couldn’t get Piefed to repost from a GotoSocial link.

  • verstra@programming.dev
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 hours ago

    Meanwhile, I’m using Pixel 3a for my main phone (for quite a few years now) and consider it a relatively up-to-date phone.

  • MalReynolds@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 hours ago

    I’ll assume it’s cool, but currently hugged to death for me. Just wanted to point out batteries are replaceable even if glued, fixed my GrapheneOS Pixel7 after it killed itself (spicy pillow) charging in heat in a warmer country. iFixit kit + video worked, then got a Chargie which lets you set a temperature above which it will not charge (33C for me, only charges at night in summer). Probably relevant in your case.

  • Da Oeuf@slrpnk.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 hours ago

    I’ve been wanting to do exactly this for a long time. Is there any documentation on how to set it up?

  • Railcar8095@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    12 hours ago

    Do you have a guide to replicate? I have a half broken pixel 7 that might work for something like this

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    17
    ·
    20 hours ago

    Nice work. But the phone should be able to host quite a bit more, as it is actually quite fast.

    • mesa@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      22
      ·
      19 hours ago

      Im not sure I want to host more on the phone (yet?). Its a nice novelty but I have other self hosted platforms that are much more robust. This is more of a “can I do it” kind of project. Your seeing my free time right now.

      Thanks for the comment!

    • B0rax@feddit.org
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 hours ago

      Depending on the dongle, that would increase power consumption. I think that is difficult in the current state, seeing that there is not much power to spare at the moment.

  • ook@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    3
    ·
    14 hours ago

    I cannot keep track which models have issues but isn’t the 6a one of those with battery bloat issues? Might remember wrong. Definitley a cool project! Is the phone not getting super hot in that plastic box?

  • tburkhol@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    18 hours ago

    From the power draw, it looks like lemmy federation got hold of it around 16:30. As of 17:20, it’s still holding up.

    I understand the Mastodon federation system can be very DDOS-ey on web sites, if you’re tempted to post it there.

    Cool project.

    • mesa@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      17 hours ago

      Thanks! Yeah its right around the time the sun went away. Its cloudy where I’m at today.

  • waddle_dee@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    19 hours ago

    I’m curious as to how big of a load you’ve put on the system, so far. Is it just the site? What’s the code for charging? Do you have it set to discharge to 30% then charge, or just charge to 80% whenever it’s discharged some arbitrary amount? Sorry for the questions, I’m incredibly fascinated by this project!

    • mesa@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      17 hours ago

      I think like 5% at max? Apache2 + straight HTML is very low on cpu memory. Its probably overkill honestly.

      Its auto set yp go to 80% petminantly as the highest charge. And android itself takes care of the heavy lifting when it comes to battery optimization.

    • dai@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      19 hours ago

      I’d dare say the easier method, from memory the p6 should have a charge limit in the stock firmware.

      I’ve not an old Samsung s10+ kicking around with corrupted firmware, should really take a look at it and see if it can be up and running again. Not that I need more cores, ram, cameras or any additions to my equipment but just because.

      It fassinates me that consumer hardware, and low power at that goes wasted so often. So many small form factor devices such as phones, with built in ups aren’t being leveraged. But I guess that comes down to proprietary binary blobs and developer work on a per device basis.

      I might have to investigate what platforms mobile nixos supports and see if it’s cheap enough to dabble with.

  • hexagonwin@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 hours ago

    nice! i’d recommend keeping the battery a bit lower tho, and perhaps lower charging currency/voltage.

    i believe it’s also possible to run proper linux on this phone btw

    • i_love_FFT@jlai.lu
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      Which Linux distro would work on a phone? I have an old zenfone 8 lying around.

  • cmnybo@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    4
    ·
    19 hours ago

    Has anyone figured out how to make android use a static IPv6 address? If I have to run a reverse proxy on a real PC, I may as well just host the website from that PC.

      • cmnybo@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        18 hours ago

        Android changes its IPv6 address daily. That makes it kinda hard to host anything on it. SLAAC would be fine too if it was a stable address.

    • litchralee@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      ·
      18 hours ago

      If you’re using SLAAC for auto IP assignment, then the resulting EUI-64-based address would be essentially static, based on the premise that your MAC address and local subnet prefix don’t change. Privacy extensions night get in the way, as well as Android’s randomized MAC feature, but those are adjustable.