Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
pi
- Page 1
Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
4 Weeks Ago
by Aria James
… a smart home automation system using a Linux-based Raspberry
Pi
setup. My background is in electronics and embedded systems, but… be best for running automation tasks smoothly on a Raspberry
Pi
, any recommended libraries or frameworks that make working with sensors…
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
2 Weeks Ago
by WilliamOG
Great project idea, and you're already ahead with your electronics background. For the OS, Raspberry
Pi
OS Lite is a solid starting point—lightweight, well-supported, and ideal for headless setups. If you want something even more stripped down, check out DietPi or Ubuntu Server for
Pi
, but the trade-off is slightly less community support.
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
4 Weeks Ago
by trcooke
Hello, I'd probably start with an open source off the shelf solution such as https://www.home-assistant.io/ There are tutorials on their site that cover installation onto a raspberry
pi
so you should be able to get to and running fairly quickly. It sounds like a fun project so please do let us know how you get on.
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by trcooke
… and had a little bash script running on a raspberry
pi
that polled for the temperature every now and then and…
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by Dani
What about using something like [IFTTT](https://ifttt.com/)?
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by Dani
I assume your son is no longer a baby, but nowadays you can get Nest temperature sensors to put in different areas of your home. You can officially tell Nest to control the HVAC based on the temperature of the family room during the day and the temperature of the bedroom at night, for example.
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by trcooke
Indeed not. He's 7 now. Yes you can get those free standing mounts, but I don't have any. My thermostats are wired into the wall. It'd be cool if you could just pop them off the wall and stick them on a stand anywhere you like, but alas you cannot.
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by Dani
Huh? I'm referring to [these](https://www.amazon.com/Google-Nest-Temperature-Sensor-Pack/dp/B0D5J7G9J2/ref=asc_df_B0D5J7G9J2?mcid=eae5a49f4a903a8db2d8e80887222083&hvocijid=7880327826579386076-B0D5J7G9J2-&hvexpln=73&tag=hyprod-20&linkCode=df0&hvadid=721245378154&hvpos=&hvnetw=g&hvrand=7880327826579386076&hvpone=&…
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by trcooke
Oh I have not seen those before... interesting. I was thinking of this 
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by trcooke
Apparently not available in the UK. Although Amazon UK are selling them and there are lots of angry reviews left.
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by Dani
How can you bear to live in such an uncivilized country?!
Re: Best Approach for Starting a Linux-Based Home Automation Pro
Hardware and Software
Linux and Unix
3 Weeks Ago
by Dani
P.S. Here in the US, our Nests are directly connected to the HVAC system hardwired in the wall, so they aren’t movable at all.
Re: Is linux your daily driver?
Hardware and Software
Linux and Unix
2 Months Ago
by Reverend Jim
I've tried loinux several times over the years on spare computers, virtual machines, and a Raspberry
Pi
. I gave up on all of them because it was too difficult to maintain. Now all I use it for is Live USB recovery tools.
Pi !
Programming
Software Development
17 Years Ago
by skatamatic
I've recently made a
pi
calculator out of a pretty rediculous algorithm (which is incredible …; setprecision(16) << fixed << dPi; dAccuracy = ((dPi /
PI
) * 100); cout << "\nApproximate Accuracy: " <<…
pi
Programming
Software Development
11 Years Ago
by laleh.97
We estimate
pi
. We assume as in Figure 10 is a side of … your account. This ratio is equal to one-fourth of
pi
. Find a way to write the function to determine the…
Re: pi
Programming
Software Development
11 Years Ago
by Banfa
… points in a quadrant of a circle from 0.785398(
PI
/4) to 0.570248 when you only consider integer points… suggests this isn't a terribly good method to approximate
PI
. Using 10500+ random points the result of the formula when…
Re: Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by Lucaci Andrew
…`'.'`). cout.precision(20); cout<<"
pi
"<<"["<<i<… like this: /* * Output */ This program approximates
pi
using an n-term series expansion. Enter the value of…series expansion. Enter the value of n>15
pi
[15] = 3.2081856522619416339 Also, I let myself…
Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by lwarshaw19
…= 2.97604617604617560644 Sample Run 4: This program approximates
pi
using an n-term series expansion. Enter the value…cmath> using namespace std; int main () { double
pi
= 0; double i; int n; cout<<"…;This program approximates
pi
using an n-term series expansion."<…
Re: Pi Approximation
Programming
Software Development
14 Years Ago
by loga88
…> => 3 > Approximation value of
pi
is 3.466667. #include <iostream> #…using namespace std; int main() { double
pi
= 0; // Calculating
pi
/4 int elements; cout<<"…2*n-1); } // Calculating
pi
pi
*= 4; cout<<"Estimated
PI
value (" << …
Re: Pi Approximation
Programming
Software Development
21 Years Ago
by BountyX
…<math.h> int main() { double
pi
= 0; // Calculating
pi
/4 int elements = 2000; for (long int n…)/(2*n-1); } // Calculating
pi
pi
*= 4; cout << "Estimated
PI
value (" << elements…<< " elements): "<<
pi
; return 0; } As you can see I left some…
Re: Pi Approximation
Programming
Software Development
21 Years Ago
by essentialc++33
…gt; int main() > { > double
pi
= 0; // Calculating
pi
/4 > int elements = 2000; >…1; n <= elements; n++) > { >
pi
+= (double) pow(-1, n+1)/(2*n-1); >…; } > // Calculating
pi
>
pi
*= 4; > cout << "Estimated
PI
value (" <<…
Re: Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by vijayan121
…need the expensive and approximate `std::pow()`. Something like this: //
pi
= 4 * ( 1 - 1/3 + 1/5 - … 1/9 - 1/11 + ... ) int sign = +1 ; double
pi
= 0.0 ; constexpr int n = 1000000 ; for( int i =… 0 ; i < n ; ++i ) {
pi
+= sign * 4.0 / ( i*2 + 1 ) ; sign = -sign ;…
Pi to many decimal places
Programming
Software Development
14 Years Ago
by penguino138
Ok so i want to make a program that calculates
pi
. Ive done that already but it only gives me so ….h> #include <math.h> int main() { double
pi
= 0; int elements; cout << "How many???"…) pow(-1, n+1)/(2*n-1); }
pi
*= 4; cout << "Estimated
PI
value (" << elements <<…
Re: Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by lwarshaw19
My output looks like this: Enter the value of n>3
pi
[3] = 12 For any number I put as the value of n... it gives me the answer 12.. just confused as to what I'm doing wrong.. My output should also show the terms used .. like if my n (number of terms) was 3.. then it should show: `
pi
[3] = 4[1 - 1/3 + 1/5] = (my answer)`
Re: Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by iamthwee
… getting the answer 12. If you comment out the line `
pi
*=4;` you should get a value such as 3.14… you get. for (double n = 1; n <= i; n++) {
pi
+= (double) pow(-1.0, n+1)*(4/(2*n-1…
Re: Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by iamthwee
>For any number I put as the value of n... it gives me the answer 12.. A healthy adding of couts at strategic places could help your cause. >My output should also show the terms used .. like if my n (number of terms) was 3.. then it should show:
pi
[3] = 4[1 - 1/3 + 1/5] = (my answer) This could be solved by using cout in your `for` loop
Re: Pi Approximation with Taylor Series
Programming
Software Development
12 Years Ago
by iamthwee
Additionally why are you doing this `
pi
*= 4;` when you are already multiplying by four in the for loop?
Re: Pi Approximation with Taylor Series
Programming
Software Development
11 Years Ago
by p s suvin
whats the series expansion of
pi
power4 divided by 180
Pi Approximation
Programming
Software Development
21 Years Ago
by essentialc++33
… be determined by the series equation
PI
=4x(1-1/3+1/5-1/… manu terms of series equation to use in approximating
PI
. Then calculate and display the approximation. Here is… a sample run:
PI
Approximation Program How many terms of the series should… the approximation) => 3 Approximation value of
pi
is 3.466667.
Re: Pi Approximation
Programming
Software Development
21 Years Ago
by essentialc++33
…{ [/size][size=2][color=#0000ff]double[/color][/size][size=2]
pi
=3.14159265358979323846; [/size][size=2][color=#008000]//approximate value of… many terms of the series equation to use in approximating
pi
"<< endl; cin >> enter …terms; cout << "approximate value of
pi
is"<< endl; return 0; } I don…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC